Sha256: 0aa53b90830504a4699cd4d5a6f2b297d590a370d5e65a05743e3a51df50c20e
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
# ********************************************************************************* # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC. # See also https://github.com/urbanopt/urbanopt-cli/blob/develop/LICENSE.md # ********************************************************************************* # frozen_string_literal: true class Version OS_HPXML_Version = '1.7.0' # Version of the OS-HPXML workflow OS_Version = '3.7.0' # 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
2 entries across 2 versions & 1 rubygems