Sha256: 1fabab9f761963977468ed8628bd0b1bf910030acdd52e33916bb82b5b99fd4d
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true class Version OS_HPXML_Version = '1.5.1' # Version of the OS-HPXML workflow OS_Version = '3.5' # Required version of OpenStudio (can be 'X.X' or 'X.X.X') HPXML_Version = '4.0' # HPXML schemaVersion def self.check_openstudio_version if not OpenStudio.openStudioVersion.start_with? OS_Version if OS_Version.count('.') == 2 fail "OpenStudio version #{OS_Version} is required. Found version: #{OpenStudio.openStudioVersion}" else fail "OpenStudio version #{OS_Version}.X is required. Found version: #{OpenStudio.openStudioVersion}" end end end def self.check_hpxml_version(hpxml_version) if hpxml_version != HPXML_Version fail "HPXML version #{HPXML_Version} is required." end end end
Version data entries
3 entries across 3 versions & 1 rubygems