openstudio-extension 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile +2 -0
- data/Jenkinsfile +1 -1
- data/LICENSE.md +1 -1
- data/Rakefile +1 -1
- data/doc_templates/LICENSE.md +1 -1
- data/doc_templates/copyright_erb.txt +1 -1
- data/doc_templates/copyright_js.txt +1 -1
- data/doc_templates/copyright_ruby.txt +1 -1
- data/init_templates/openstudio_module.rb +1 -1
- data/init_templates/spec.rb +1 -1
- data/init_templates/spec_helper.rb +1 -1
- data/init_templates/version.rb +1 -1
- data/lib/change_log.rb +1 -1
- data/lib/measures/openstudio_extension_test_measure/LICENSE.md +1 -1
- data/lib/measures/openstudio_extension_test_measure/measure.rb +1 -1
- data/lib/measures/openstudio_extension_test_measure/measure.xml +12 -12
- data/lib/measures/openstudio_extension_test_measure/resources/os_lib_helper_methods.rb +15 -2
- data/lib/openstudio-extension.rb +1 -1
- data/lib/openstudio/extension.rb +1 -1
- data/lib/openstudio/extension/core/CreateResults.rb +1 -1
- data/lib/openstudio/extension/core/check_air_sys_temps.rb +1 -1
- data/lib/openstudio/extension/core/check_calibration.rb +1 -1
- data/lib/openstudio/extension/core/check_cond_zns.rb +1 -1
- data/lib/openstudio/extension/core/check_domestic_hot_water.rb +1 -1
- data/lib/openstudio/extension/core/check_envelope_conductance.rb +1 -1
- data/lib/openstudio/extension/core/check_eui_by_end_use.rb +1 -1
- data/lib/openstudio/extension/core/check_eui_reasonableness.rb +1 -1
- data/lib/openstudio/extension/core/check_fan_pwr.rb +1 -1
- data/lib/openstudio/extension/core/check_internal_loads.rb +1 -1
- data/lib/openstudio/extension/core/check_mech_sys_capacity.rb +1 -1
- data/lib/openstudio/extension/core/check_mech_sys_efficiency.rb +1 -1
- data/lib/openstudio/extension/core/check_mech_sys_part_load_eff.rb +1 -1
- data/lib/openstudio/extension/core/check_mech_sys_type.rb +1 -1
- data/lib/openstudio/extension/core/check_part_loads.rb +1 -1
- data/lib/openstudio/extension/core/check_placeholder.rb +1 -1
- data/lib/openstudio/extension/core/check_plant_cap.rb +1 -1
- data/lib/openstudio/extension/core/check_plant_temps.rb +1 -1
- data/lib/openstudio/extension/core/check_plenum_loads.rb +1 -1
- data/lib/openstudio/extension/core/check_pump_pwr.rb +1 -1
- data/lib/openstudio/extension/core/check_sch_coord.rb +1 -1
- data/lib/openstudio/extension/core/check_schedules.rb +1 -1
- data/lib/openstudio/extension/core/check_simultaneous_heating_and_cooling.rb +1 -1
- data/lib/openstudio/extension/core/check_supply_air_and_thermostat_temp_difference.rb +1 -1
- data/lib/openstudio/extension/core/check_weather_files.rb +1 -1
- data/lib/openstudio/extension/core/deer_vintages.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_aedg_measures.rb +5 -5
- data/lib/openstudio/extension/core/os_lib_constructions.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_geometry.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_helper_methods.rb +15 -2
- data/lib/openstudio/extension/core/os_lib_hvac.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_lighting_and_equipment.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_model_generation.rb +351 -207
- data/lib/openstudio/extension/core/os_lib_model_simplification.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_outdoorair_and_infiltration.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_reporting_qaqc.rb +1 -1
- data/lib/openstudio/extension/core/os_lib_schedules.rb +1 -1
- data/lib/openstudio/extension/rake_task.rb +1 -1
- data/lib/openstudio/extension/runner.rb +17 -5
- data/lib/openstudio/extension/runner_config.rb +1 -1
- data/lib/openstudio/extension/version.rb +2 -2
- data/openstudio-extension.gemspec +6 -5
- metadata +29 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -73,15 +73,18 @@ module OpenStudio
|
|
|
73
73
|
|
|
74
74
|
@options = OpenStudio::Extension::RunnerConfig.default_config
|
|
75
75
|
# ORDER of PRECEDENCE: default config < runner.conf file < options passed in directly
|
|
76
|
-
if File.exist?(File.join(dirname, OpenStudio::Extension::RunnerConfig::FILENAME))
|
|
76
|
+
if File.exist?(File.join(dirname, OpenStudio::Extension::RunnerConfig::FILENAME))
|
|
77
77
|
puts 'Using runner options from runner.conf file'
|
|
78
78
|
runner_config = OpenStudio::Extension::RunnerConfig.new(dirname)
|
|
79
79
|
# use the default values overriden with runner.conf values
|
|
80
80
|
@options = @options.merge(runner_config.options)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
if !options.empty?
|
|
84
|
+
puts 'Merging in passed-in options'
|
|
85
|
+
# use the passed values or defaults overriden by passed options
|
|
86
|
+
@options = @options.merge(options)
|
|
87
|
+
end
|
|
85
88
|
|
|
86
89
|
puts "Initializing runner with dirname: '#{dirname}' and options: #{@options}"
|
|
87
90
|
@dirname = File.absolute_path(dirname)
|
|
@@ -660,7 +663,16 @@ module OpenStudio
|
|
|
660
663
|
puts 'simulations are not performed, since to the @options[:run_simulations] is set to false'
|
|
661
664
|
end
|
|
662
665
|
|
|
663
|
-
|
|
666
|
+
if @options[:run_simulations]
|
|
667
|
+
# Additional checks for failed CLI
|
|
668
|
+
if File.exist?(File.join(run_dir, 'failed.job'))
|
|
669
|
+
result = false
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
if !File.exist?(File.join(run_dir, 'finished.job'))
|
|
673
|
+
result = false
|
|
674
|
+
end
|
|
675
|
+
end
|
|
664
676
|
|
|
665
677
|
return result
|
|
666
678
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# *******************************************************************************
|
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
|
3
3
|
# All rights reserved.
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
|
|
36
36
|
module OpenStudio
|
|
37
37
|
module Extension
|
|
38
|
-
VERSION = '0.
|
|
38
|
+
VERSION = '0.4.0'.freeze
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -26,15 +26,16 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
27
27
|
spec.require_paths = ['lib']
|
|
28
28
|
|
|
29
|
-
spec.required_ruby_version = '~> 2.
|
|
29
|
+
spec.required_ruby_version = '~> 2.7.0'
|
|
30
30
|
|
|
31
|
-
spec.add_dependency 'bcl', '~> 0.
|
|
32
|
-
spec.add_dependency 'bundler', '
|
|
31
|
+
spec.add_dependency 'bcl', '~> 0.7.0'
|
|
32
|
+
spec.add_dependency 'bundler', '>= 2.1.0'
|
|
33
33
|
spec.add_dependency 'octokit', '~> 4.18.0' # for change logs
|
|
34
|
-
spec.add_dependency 'openstudio-workflow', '~> 2.
|
|
35
|
-
spec.add_dependency 'openstudio_measure_tester', '~> 0.
|
|
34
|
+
spec.add_dependency 'openstudio-workflow', '~> 2.2.0'
|
|
35
|
+
spec.add_dependency 'openstudio_measure_tester', '~> 0.3.0'
|
|
36
36
|
spec.add_dependency 'parallel', '~> 1.19.1'
|
|
37
37
|
|
|
38
|
+
spec.add_development_dependency 'openstudio-standards', '~> 0.2.12' # for os_lib unit tests
|
|
38
39
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
39
40
|
spec.add_development_dependency 'rspec', '~> 3.9'
|
|
40
41
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstudio-extension
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katherine Fleming
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bcl
|
|
@@ -18,28 +18,28 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - "~>"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.
|
|
21
|
+
version: 0.7.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - "~>"
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 0.
|
|
28
|
+
version: 0.7.0
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: bundler
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
|
-
- - "
|
|
33
|
+
- - ">="
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version:
|
|
35
|
+
version: 2.1.0
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
|
-
- - "
|
|
40
|
+
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
42
|
+
version: 2.1.0
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: octokit
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -60,28 +60,28 @@ dependencies:
|
|
|
60
60
|
requirements:
|
|
61
61
|
- - "~>"
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 2.
|
|
63
|
+
version: 2.2.0
|
|
64
64
|
type: :runtime
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - "~>"
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: 2.
|
|
70
|
+
version: 2.2.0
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
72
72
|
name: openstudio_measure_tester
|
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
|
75
75
|
- - "~>"
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: 0.
|
|
77
|
+
version: 0.3.0
|
|
78
78
|
type: :runtime
|
|
79
79
|
prerelease: false
|
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
|
82
82
|
- - "~>"
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 0.
|
|
84
|
+
version: 0.3.0
|
|
85
85
|
- !ruby/object:Gem::Dependency
|
|
86
86
|
name: parallel
|
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -96,6 +96,20 @@ dependencies:
|
|
|
96
96
|
- - "~>"
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
98
|
version: 1.19.1
|
|
99
|
+
- !ruby/object:Gem::Dependency
|
|
100
|
+
name: openstudio-standards
|
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - "~>"
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: 0.2.12
|
|
106
|
+
type: :development
|
|
107
|
+
prerelease: false
|
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - "~>"
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: 0.2.12
|
|
99
113
|
- !ruby/object:Gem::Dependency
|
|
100
114
|
name: rake
|
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -217,7 +231,7 @@ licenses: []
|
|
|
217
231
|
metadata:
|
|
218
232
|
bug_tracker_uri: https://github.com/NREL/openstudio-extension-gem/issues
|
|
219
233
|
changelog_uri: https://github.com/NREL/openstudio-extension-gem/blob/develop/CHANGELOG.md
|
|
220
|
-
source_code_uri: https://github.com/NREL/openstudio-extension-gem/tree/v0.
|
|
234
|
+
source_code_uri: https://github.com/NREL/openstudio-extension-gem/tree/v0.4.0
|
|
221
235
|
post_install_message:
|
|
222
236
|
rdoc_options: []
|
|
223
237
|
require_paths:
|
|
@@ -226,15 +240,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
226
240
|
requirements:
|
|
227
241
|
- - "~>"
|
|
228
242
|
- !ruby/object:Gem::Version
|
|
229
|
-
version: 2.
|
|
243
|
+
version: 2.7.0
|
|
230
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
245
|
requirements:
|
|
232
246
|
- - ">="
|
|
233
247
|
- !ruby/object:Gem::Version
|
|
234
248
|
version: '0'
|
|
235
249
|
requirements: []
|
|
236
|
-
|
|
237
|
-
rubygems_version: 2.7.6.2
|
|
250
|
+
rubygems_version: 3.1.4
|
|
238
251
|
signing_key:
|
|
239
252
|
specification_version: 4
|
|
240
253
|
summary: openstudio base gem for creating generic extensions with encapsulated data
|