openstudio-analysis 1.0.0.rc11 → 1.0.0.rc12
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/lib/openstudio/analysis/translator/workflow.rb +5 -3
- data/lib/openstudio/analysis/version.rb +1 -1
- data/spec/schema/osa.json +26 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a151c816b9480e43b65c9ab71704a09ad91a22e
|
|
4
|
+
data.tar.gz: 11f8ce9704c05baa7ac522ceea2c5f2b3ec47fac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e860f6aeaaa62ad341ce59f8adf55a6643cc9b6740d7de10dda78c0f721947cbe52ca6b37e3de0f3a8fa12ed403c787b0a27d31988cd3de1fd11741ba5cdc8d2
|
|
7
|
+
data.tar.gz: 2f84b7eac4387072384db1519272a4cfdc338597f772b7cce5d8f2ff1928f698f13dba628e6093cfbcf206842c0bc8d75fe9eff7a7d6221bcce25e6622a25c0a
|
|
@@ -34,6 +34,9 @@ module OpenStudio
|
|
|
34
34
|
|
|
35
35
|
# Initialize static inputs from the OSA
|
|
36
36
|
@seed_file = File.basename @osa[:seed][:path]
|
|
37
|
+
if @options[:seed]
|
|
38
|
+
@seed_file = @options[:seed]
|
|
39
|
+
end
|
|
37
40
|
@weather_file = File.basename @osa[:weather_file][:path]
|
|
38
41
|
@osa_id = @osa[:_id]
|
|
39
42
|
@steps = []
|
|
@@ -72,7 +75,6 @@ module OpenStudio
|
|
|
72
75
|
|
|
73
76
|
# Parse the osd hash based off of the osa hash. First check that the analysis id matches
|
|
74
77
|
raise "File #{osd_filename} does not reference #{@osa_id}." unless @osa_id == osd[:analysis_id]
|
|
75
|
-
# @todo (rhorsey) Fix the spec so this line can be uncommented
|
|
76
78
|
osw_steps_instance = @steps
|
|
77
79
|
osw_steps_instance.each_with_index do |step, i|
|
|
78
80
|
next unless @osa[:problem][:workflow][i][:variables]
|
|
@@ -99,7 +101,7 @@ module OpenStudio
|
|
|
99
101
|
osw[:steps] = osw_steps_instance
|
|
100
102
|
osw[:name] = osd[:name] if osd[:name]
|
|
101
103
|
osw[:description] = osd[:description] if osd[:description]
|
|
102
|
-
|
|
104
|
+
osw
|
|
103
105
|
end
|
|
104
106
|
|
|
105
107
|
# Runs an array of OSD files
|
|
@@ -114,7 +116,7 @@ module OpenStudio
|
|
|
114
116
|
end
|
|
115
117
|
end
|
|
116
118
|
|
|
117
|
-
|
|
119
|
+
r
|
|
118
120
|
end
|
|
119
121
|
end
|
|
120
122
|
end
|
data/spec/schema/osa.json
CHANGED
|
@@ -290,6 +290,32 @@
|
|
|
290
290
|
},
|
|
291
291
|
"seed": {
|
|
292
292
|
"$ref": "#/definitions/Seed Object"
|
|
293
|
+
},
|
|
294
|
+
"options": {
|
|
295
|
+
"description": "Each option corresponds to one WorkflowStep (i.e. Measure). Options are listed in order",
|
|
296
|
+
"type": "array",
|
|
297
|
+
"items": {
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {
|
|
300
|
+
"measure_name": {
|
|
301
|
+
"description": "Name of the measure in this workflow",
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
"workflow_index": {
|
|
305
|
+
"description": "Index of the measure in the workflow",
|
|
306
|
+
"type": "number"
|
|
307
|
+
},
|
|
308
|
+
"name": {
|
|
309
|
+
"description": "Name of the user specified option",
|
|
310
|
+
"type": "string"
|
|
311
|
+
},
|
|
312
|
+
"description": {
|
|
313
|
+
"description": "Description of the user specified option",
|
|
314
|
+
"type": "string"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"additionalProperties": false
|
|
318
|
+
}
|
|
293
319
|
}
|
|
294
320
|
},
|
|
295
321
|
"required": [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstudio-analysis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.rc12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicholas Long
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
272
272
|
version: 1.3.6
|
|
273
273
|
requirements: []
|
|
274
274
|
rubyforge_project:
|
|
275
|
-
rubygems_version: 2.0
|
|
275
|
+
rubygems_version: 2.5.0
|
|
276
276
|
signing_key:
|
|
277
277
|
specification_version: 4
|
|
278
278
|
summary: Create JSON, ZIP to communicate with OpenStudio Distributed Analysis in the
|