Sha256: ff3c0dd76f98b934822e70b5e5f4c41812346729ef54d05b1f44a3f3b4581791
Contents?: true
Size: 786 Bytes
Versions: 1
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true class Version OS_HPXML_Version = '1.6.0' # Version of the OS-HPXML workflow OS_Version = '3.6.1' # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
urbanopt-cli-0.10.0 | example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/version.rb |