openstudio-analysis 1.0.0.pre.rc4 → 1.0.0.pre.rc5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54391b81c2f65e4be2f21d880318705e49482bc0
4
- data.tar.gz: 0e107eced77ba5b34747b26b73b125d65619d8c1
3
+ metadata.gz: b0a3a63a518cbb50ad16dd16675b391428071e8d
4
+ data.tar.gz: 671e584af25a239fa8b5f68133cbcc1f9806ee29
5
5
  SHA512:
6
- metadata.gz: 85902d52a7300052efc0914aaa6d40355a5eadb8bf4adbe479dce69505cfddf54d41759104f348aef3dc8f513f142883ea67061106f1d88350f4d3179de4b030
7
- data.tar.gz: b25fc97d234143affac537fb34288c7467c2c1afaf465c94bea48c69680d0c3efb2f2ecefe70b75cab99a1914a64f635fa46af8b762d24d41670a0a92eec2470
6
+ metadata.gz: a2fecd9ae6e279325741be2873eec19823dbbf5542594a1ea1d22c49626946d11eba749863000881ecbfeb7141464ce9c3e65b7cb4a19ce153ee608f418f8540
7
+ data.tar.gz: 528d9501c81e8d6891ce299a628a0d53f24efecf0163661f2da0e8a676454263961b48eaa728c80e5996d815f9065361dbf3cba9dfada7628dac08308385fd42
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  OpenStudio Analysis Gem Change Log
2
2
  ==================================
3
3
 
4
+ Version 1.0.0.pre.rc5
5
+ ---------------------
6
+ * fix get_datapoint method. show_full is no longer a valid endpoint in the new server code
7
+
4
8
  Version 1.0.0.pre.rc4
5
9
  ---------------------
6
10
  * Change seed_model to seed_file in OSWs generated from the translator
@@ -716,7 +716,7 @@ module OpenStudio
716
716
  def get_datapoint(data_point_id)
717
717
  data_point = nil
718
718
 
719
- resp = @conn.get "/data_points/#{data_point_id}/show_full.json"
719
+ resp = @conn.get "/data_points/#{data_point_id}.json"
720
720
  if resp.status == 200
721
721
  data_point = JSON.parse resp.body, symbolize_names: true
722
722
  end
@@ -48,6 +48,13 @@ module OpenStudio
48
48
  step_hash[:arguments][arg[:name].to_sym] = arg[:value]
49
49
  end
50
50
  end
51
+ step_hash[:name] = step[:name] if step[:name]
52
+ step_hash[:measure_id] = step[:uuid] if step[:uuid]
53
+ step_hash[:version_id] = step[:version_uuid] if step[:version_uuid]
54
+ step_hash[:description] = step[:description] if step[:description]
55
+ step_hash[:taxonomy] = step[:taxonomy] if step[:taxonomy]
56
+ step_hash[:measure_type] = step[:measure_type]
57
+ step_hash[:measure_type] = 'ModelMeasure' if step_hash[:measure_type] == 'RubyMeasure'
51
58
  @steps << step_hash
52
59
  end
53
60
  end
@@ -90,6 +97,8 @@ module OpenStudio
90
97
  osw[:file_paths] = @file_paths
91
98
  osw[:run_directory] = './'
92
99
  osw[:steps] = osw_steps_instance
100
+ osw[:name] = osd[:name] if osd[:name]
101
+ osw[:description] = osd[:description] if osd[:description]
93
102
  return osw
94
103
  end
95
104
 
@@ -1,5 +1,5 @@
1
1
  module OpenStudio
2
2
  module Analysis
3
- VERSION = '1.0.0-rc4'
3
+ VERSION = '1.0.0-rc5'
4
4
  end
5
5
  end
data/spec/schema/osa.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "type": "object",
18
18
  "properties": {
19
19
  "units": {
20
- "description": "Haystack complient unit string, or empty string if not applicable",
20
+ "description": "Haystack compliant unit string, or empty string if not applicable",
21
21
  "type": "string"
22
22
  },
23
23
  "objective_function": {
@@ -25,7 +25,7 @@
25
25
  "type": "boolean"
26
26
  },
27
27
  "objective_function_index": {
28
- "description": "Key used to define multi-objective functions, null if not applicale",
28
+ "description": "Key used to define multi-objective functions, null if not applicable",
29
29
  "type": "number"
30
30
  },
31
31
  "objective_function_target": {
@@ -48,7 +48,7 @@
48
48
  "type": "string"
49
49
  },
50
50
  "display_name_short": {
51
- "description": "User facing name less that 20 chareters",
51
+ "description": "User facing name less that 20 characters",
52
52
  "type": "string"
53
53
  },
54
54
  "metadata_id": {
@@ -89,15 +89,15 @@
89
89
  },
90
90
  "Algorithm Attributes": {
91
91
  "title": "algorithm",
92
- "description": "Hash of ttributes associated with the analysis_type",
92
+ "description": "Hash of attributes associated with the analysis_type",
93
93
  "type": "object",
94
94
  "additionalProperties": {
95
- "description": "Attibutes defined by analysis type"
95
+ "description": "Attributes defined by analysis type"
96
96
  }
97
97
  },
98
98
  "Argument": {
99
99
  "title": "argument",
100
- "description": "Indivigual argument instance",
100
+ "description": "Individual argument instance",
101
101
  "type": "object",
102
102
  "properties": {
103
103
  "display_name": {
@@ -105,11 +105,11 @@
105
105
  "type": "string"
106
106
  },
107
107
  "display_name_short": {
108
- "description": "Optional user-facing display name under 20 charecters",
108
+ "description": "Optional user-facing display name under 20 characters",
109
109
  "type": "string"
110
110
  },
111
111
  "name": {
112
- "description": "Machine readable snake-cased name of agrument as defined in the measure.xml",
112
+ "description": "Machine readable snake-cased name of argument as defined in the measure.xml",
113
113
  "type": "string"
114
114
  },
115
115
  "value_type": {
@@ -156,7 +156,7 @@
156
156
  "additionalProperties": false
157
157
  },
158
158
  "Workflow Step": {
159
- "description": "Indivigual measure definition",
159
+ "description": "Individual measure definition",
160
160
  "type": "object",
161
161
  "properties": {
162
162
  "name": {
@@ -164,13 +164,21 @@
164
164
  "type": "string"
165
165
  },
166
166
  "display_name": {
167
- "description": "User facing measure name whcih must also be unique",
167
+ "description": "User facing measure name which must also be unique",
168
168
  "type": "string"
169
169
  },
170
170
  "measure_type": {
171
171
  "description": "Accepts values of 'Ruby' 'EnergyPlus' and 'Reporting'",
172
172
  "type": "string"
173
173
  },
174
+ "description": {
175
+ "description": "Measure description",
176
+ "type": "string"
177
+ },
178
+ "taxonomy": {
179
+ "description": "Measure taxonomy tag",
180
+ "type": "string"
181
+ },
174
182
  "measure_definition_class_name": {
175
183
  "description": "Class name of measure.rb file",
176
184
  "type": "string"
@@ -245,7 +253,7 @@
245
253
  },
246
254
  "Uncertainty Definition": {
247
255
  "title": "uncertainty_description",
248
- "description": "Set of attributes defining the variablity of the input",
256
+ "description": "Set of attributes defining the variability of the input",
249
257
  "type": "object",
250
258
  "properties": {
251
259
  "type": {
@@ -268,8 +276,27 @@
268
276
  ],
269
277
  "additionalProperties": false
270
278
  },
279
+ "Design Alternative": {
280
+ "description": "Individual design alternative instance",
281
+ "type": "object",
282
+ "properties": {
283
+ "name": {
284
+ "description": "Name of design alternative",
285
+ "type": "string"
286
+ },
287
+ "description" : {
288
+ "description": "Description of design alternative",
289
+ "type": "string"
290
+ }
291
+ },
292
+ "required": [
293
+ "name",
294
+ "description"
295
+ ],
296
+ "additionalProperties": false
297
+ },
271
298
  "Variable": {
272
- "description": "Inidivigual variable instance",
299
+ "description": "Individual variable instance",
273
300
  "type": "object",
274
301
  "properties": {
275
302
  "argument": {
@@ -280,7 +307,7 @@
280
307
  "type": "string"
281
308
  },
282
309
  "display_name_short": {
283
- "description": "Optional user-facing name under 20 charecters",
310
+ "description": "Optional user-facing name under 20 characters",
284
311
  "type": "string"
285
312
  },
286
313
  "variable_type": {
@@ -292,7 +319,7 @@
292
319
  ]
293
320
  },
294
321
  "units": {
295
- "description": "Haystack complient units with an empty string if not defined.",
322
+ "description": "Haystack compliant units with an empty string if not defined.",
296
323
  "type": "null"
297
324
  },
298
325
  "minimum": {
@@ -308,7 +335,7 @@
308
335
  "type": "null"
309
336
  },
310
337
  "static_value": {
311
- "description": "Value to defalut to in the case of this variable not being perturbed in a datapoint",
338
+ "description": "Value to default to in the case of this variable not being perturbed in a datapoint",
312
339
  "type": "number"
313
340
  },
314
341
  "uuid": {
@@ -368,7 +395,7 @@
368
395
  "doe",
369
396
  "repeat_run",
370
397
  "optim",
371
- "baseline_purturbation",
398
+ "baseline_perturbation",
372
399
  "preflight"
373
400
  ]
374
401
  },
@@ -385,6 +412,13 @@
385
412
  "name": {
386
413
  "description": "??????",
387
414
  "type": "string"
415
+ },
416
+ "Design Alternative Array": {
417
+ "description": "Array of design alternative names and descriptions",
418
+ "type": "array",
419
+ "items": {
420
+ "$ref": "#/definitions/Design Alternative"
421
+ }
388
422
  }
389
423
  },
390
424
  "required": [
@@ -403,7 +437,7 @@
403
437
  }
404
438
  },
405
439
  "Workflow": {
406
- "description": "Definintion of measures to be applied in the analysis",
440
+ "description": "Definition of measures to be applied in the analysis",
407
441
  "type": "array",
408
442
  "items": {
409
443
  "$ref": "#/definitions/Workflow Step"
@@ -506,7 +540,7 @@
506
540
  "additionalProperties": false
507
541
  },
508
542
  "Argument Array": {
509
- "description": "Array of fixed inputs for the masure",
543
+ "description": "Array of fixed inputs for the measure",
510
544
  "type": "array",
511
545
  "items": {
512
546
  "$ref": "#/definitions/Argument"
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.pre.rc4
4
+ version: 1.0.0.pre.rc5
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-08-04 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday