openstudio-analysis 0.4.4 → 0.4.5
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/.travis.yml +2 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +4 -1
- data/README.md +30 -13
- data/lib/openstudio-analysis.rb +1 -0
- data/lib/openstudio/analysis.rb +34 -0
- data/lib/openstudio/analysis/formulation.rb +12 -4
- data/lib/openstudio/analysis/server_api.rb +79 -1
- data/lib/openstudio/analysis/translator/datapoints.rb +409 -0
- data/lib/openstudio/analysis/translator/excel.rb +3 -3
- data/lib/openstudio/analysis/version.rb +1 -1
- data/lib/openstudio/analysis/workflow.rb +35 -0
- data/lib/openstudio/analysis/workflow_step.rb +2 -3
- data/lib/openstudio/weather/epw.rb +1 -1
- data/openstudio-analysis.gemspec +2 -1
- data/spec/schema/osa.json +550 -0
- data/spec/schema/osa.png +0 -0
- data/spec/schema/osd.json +110 -0
- data/spec/schema/osd.png +0 -0
- metadata +27 -4
data/spec/schema/osa.png
ADDED
Binary file
|
@@ -0,0 +1,110 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"description": "JSON Schema of the OpenStudioDatapoint (OSD) json fileformat v0.1",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"data_point": {
|
7
|
+
"$ref": "#/definitions/data_point"
|
8
|
+
}
|
9
|
+
},
|
10
|
+
"required": [
|
11
|
+
"data_point"
|
12
|
+
],
|
13
|
+
"additionalProperties": false,
|
14
|
+
"definitions": {
|
15
|
+
"set_variable_values": {
|
16
|
+
"title": "set_variable_values",
|
17
|
+
"description": "Set of variable uuids as keys with associated values in the form of bool, string, or numeric",
|
18
|
+
"type": "object",
|
19
|
+
"additionalProperties": {
|
20
|
+
"description": "Variable uuid key with value as the value for the variable in the simulation defined by this file",
|
21
|
+
"type": [
|
22
|
+
"string",
|
23
|
+
"number",
|
24
|
+
"boolean"
|
25
|
+
]
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"data_point": {
|
29
|
+
"title": "Datapoint",
|
30
|
+
"description": "Hash of datapoint attributes",
|
31
|
+
"type": "object",
|
32
|
+
"properties": {
|
33
|
+
"_id": {
|
34
|
+
"description": "UUID of the OSD file",
|
35
|
+
"type": "string"
|
36
|
+
},
|
37
|
+
"analysis_id": {
|
38
|
+
"description": "UUID of the parent OSA file",
|
39
|
+
"type": "string"
|
40
|
+
},
|
41
|
+
"created_at": {
|
42
|
+
"description": "ISO8601 string defining creation date-time",
|
43
|
+
"type": "string"
|
44
|
+
},
|
45
|
+
"download_information": {
|
46
|
+
"description": "?????",
|
47
|
+
"type": "null"
|
48
|
+
},
|
49
|
+
"download_status": {
|
50
|
+
"description": "????",
|
51
|
+
"type": "string"
|
52
|
+
},
|
53
|
+
"internal_ip_address": {
|
54
|
+
"description": "?????",
|
55
|
+
"type": "string"
|
56
|
+
},
|
57
|
+
"ip_address": {
|
58
|
+
"description": "IP address of the worker consuming the OSD file",
|
59
|
+
"type": "string"
|
60
|
+
},
|
61
|
+
"name": {
|
62
|
+
"description": "User facing datapoint name",
|
63
|
+
"type": "string"
|
64
|
+
},
|
65
|
+
"output": {
|
66
|
+
"description": "?????",
|
67
|
+
"type": "null"
|
68
|
+
},
|
69
|
+
"run_end_time": {
|
70
|
+
"description": "ISO8601 date-time when simulation associated with the file was completed",
|
71
|
+
"type": "string"
|
72
|
+
},
|
73
|
+
"run_start_time": {
|
74
|
+
"description": "ISO8601 date-time when the simulation associated with the file was started",
|
75
|
+
"type": "string"
|
76
|
+
},
|
77
|
+
"set_variable_values": {
|
78
|
+
"$ref": "#/definitions/set_variable_values"
|
79
|
+
},
|
80
|
+
"status": {
|
81
|
+
"description": "Current state of the OSD simulation",
|
82
|
+
"type": "string"
|
83
|
+
},
|
84
|
+
"status_message": {
|
85
|
+
"description": "Message associated with the current state of the OSD simulation",
|
86
|
+
"type": "string"
|
87
|
+
},
|
88
|
+
"updated_at": {
|
89
|
+
"description": "ISO8601 datetime at which the OSD file was last updated",
|
90
|
+
"type": "string"
|
91
|
+
},
|
92
|
+
"uuid": {
|
93
|
+
"description": "???? Same as _id",
|
94
|
+
"type": "string"
|
95
|
+
},
|
96
|
+
"variable_values": {
|
97
|
+
"description": "?????",
|
98
|
+
"type": "null"
|
99
|
+
}
|
100
|
+
},
|
101
|
+
"required": [
|
102
|
+
"_id",
|
103
|
+
"analysis_id",
|
104
|
+
"set_variable_values",
|
105
|
+
"uuid"
|
106
|
+
],
|
107
|
+
"additionalProperties": false
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
data/spec/schema/osd.png
ADDED
Binary file
|
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: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Long
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: roo
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,6 +144,7 @@ files:
|
|
130
144
|
- lib/openstudio/analysis/formulation.rb
|
131
145
|
- lib/openstudio/analysis/server_api.rb
|
132
146
|
- lib/openstudio/analysis/support_files.rb
|
147
|
+
- lib/openstudio/analysis/translator/datapoints.rb
|
133
148
|
- lib/openstudio/analysis/translator/excel.rb
|
134
149
|
- lib/openstudio/analysis/version.rb
|
135
150
|
- lib/openstudio/analysis/workflow.rb
|
@@ -210,6 +225,10 @@ files:
|
|
210
225
|
- spec/openstudio/weather_spec.rb
|
211
226
|
- spec/openstudio/workflow_spec.rb
|
212
227
|
- spec/openstudio/workflow_step_spec.rb
|
228
|
+
- spec/schema/osa.json
|
229
|
+
- spec/schema/osa.png
|
230
|
+
- spec/schema/osd.json
|
231
|
+
- spec/schema/osd.png
|
213
232
|
- spec/spec_helper.rb
|
214
233
|
homepage: http://openstudio.nrel.gov
|
215
234
|
licenses:
|
@@ -223,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
242
|
requirements:
|
224
243
|
- - '>='
|
225
244
|
- !ruby/object:Gem::Version
|
226
|
-
version:
|
245
|
+
version: '2.0'
|
227
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
247
|
requirements:
|
229
248
|
- - '>='
|
@@ -231,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
250
|
version: 1.3.6
|
232
251
|
requirements: []
|
233
252
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.4
|
253
|
+
rubygems_version: 2.6.4
|
235
254
|
signing_key:
|
236
255
|
specification_version: 4
|
237
256
|
summary: Create JSON, ZIP to communicate with OpenStudio Distributed Analysis in the
|
@@ -308,4 +327,8 @@ test_files:
|
|
308
327
|
- spec/openstudio/weather_spec.rb
|
309
328
|
- spec/openstudio/workflow_spec.rb
|
310
329
|
- spec/openstudio/workflow_step_spec.rb
|
330
|
+
- spec/schema/osa.json
|
331
|
+
- spec/schema/osa.png
|
332
|
+
- spec/schema/osd.json
|
333
|
+
- spec/schema/osd.png
|
311
334
|
- spec/spec_helper.rb
|