openstudio-workflow 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c672be50cec3b97e0768c9b4b935283c281a42a8668d172777d77fc11f7bb636
4
- data.tar.gz: 110cd910db5fd25e70c641dbbe905ee18b065dcfdf0447c50847867a5bd8a9db
3
+ metadata.gz: c632f0a2834a490fbd25b21ef3f17ff07d77e08bdf76db7d1737a2843665d2b6
4
+ data.tar.gz: 6ac3e3165ddac8de85d5a364878e4ae18089a9b7c2171b9bf2341cd1c4c9438e
5
5
  SHA512:
6
- metadata.gz: 37cef44df01e125a9c6e0cb496c3d68accdca96dc97106d23fac41b8e63551efdc2b9deb57cb9ffa78a9ba246bf1e0837b1a897bbf08102d95d2329c078638fa
7
- data.tar.gz: 31cd4fc83927dbef85d38ff169578888e23b928f0ab54039ac1b4cf04e2d8058849a23afa91b76443080ad98cf80c9675007a1ccb627cc69110d0e598fca3fc1
6
+ metadata.gz: e274ab7d2787530a70ea4b5f17859640597044b72ec0c62a5b1c35dd459b7e013fe248e8454526998ed66ec22750a4fc02831a30314cf50639717f608b11fa8f
7
+ data.tar.gz: 830be90f370e3f1290c3dddeeaa63c6e1b7d7f9b4bb7e64747ac04fbf44bd3e89b2f07d11683249aa19600dd331095a87694c55f1bc9fa9102d93bd65bb05071
@@ -1,6 +1,11 @@
1
1
  OpenStudio::Workflow Change Log
2
2
  ==================================
3
3
 
4
+ Version 2.1.1
5
+ -------------
6
+ * Add support for URBANopt Workflow
7
+ * Update reporting measure in tests
8
+
4
9
  Version 2.1.0
5
10
  -------------
6
11
  * Support for EnergyPlus 9.4. This version will not work with prior versions of EnergyPlus.
@@ -62,9 +62,23 @@ class RunReportingMeasures < OpenStudio::Workflow::Job
62
62
 
63
63
  # Ensure output_attributes is initialized in the registry
64
64
  @registry.register(:output_attributes) { {} } unless @registry[:output_attributes]
65
+
66
+ #get OSA[:urbanopt] #BLB should prob be sent in as cli arg and used in options but for now just do this
67
+ @registry.register(:urbanopt) { false }
68
+ if @registry[:osw_path]
69
+ workflow = nil
70
+ if File.exist? @registry[:osw_path]
71
+ workflow = ::JSON.parse(File.read(@registry[:osw_path]), symbolize_names: true)
72
+ if !workflow.nil?
73
+ if !workflow[:urbanopt].nil?
74
+ @registry.register(:urbanopt) { workflow[:urbanopt] }
75
+ end
76
+ end
77
+ end
78
+ end
65
79
 
66
80
  # Load simulation files as required
67
- unless @registry[:runner].halted
81
+ unless @registry[:runner].halted || @registry[:urbanopt]
68
82
  if @registry[:model].nil?
69
83
  osm_path = File.absolute_path(File.join(@registry[:run_dir], 'in.osm'))
70
84
  @logger.debug "Attempting to load #{osm_path}"
@@ -37,6 +37,6 @@
37
37
 
38
38
  module OpenStudio
39
39
  module Workflow
40
- VERSION = '2.1.0' # Suffixes must have periods (not dashes)
40
+ VERSION = '2.1.1' # Suffixes must have periods (not dashes)
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-25 00:00:00.000000000 Z
12
+ date: 2020-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -95,6 +95,20 @@ dependencies:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 2.8.0
98
+ - !ruby/object:Gem::Dependency
99
+ name: openstudio-standards
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 0.2.12
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 0.2.12
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: parallel
100
114
  requirement: !ruby/object:Gem::Requirement