openstudio-calibration 0.1.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +5 -0
  4. data/CHANGELOG.md +23 -8
  5. data/Gemfile +0 -3
  6. data/Jenkinsfile +6 -2
  7. data/README.md +2 -2
  8. data/Rakefile +5 -5
  9. data/lib/measures/TimeseriesObjectiveFunction/README.md +5 -171
  10. data/lib/measures/TimeseriesObjectiveFunction/measure.rb +2 -6
  11. data/lib/measures/TimeseriesObjectiveFunction/measure.xml +89 -13
  12. data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +2 -0
  13. data/lib/measures/TimeseriesPlot/README.md +5 -35
  14. data/lib/measures/TimeseriesPlot/measure.xml +27 -11
  15. data/lib/measures/TimeseriesPlot/resources/report.html.erb +2 -0
  16. data/lib/measures/zone_report/README.md +2 -2
  17. data/lib/measures/zone_report/measure.rb +1 -1
  18. data/lib/measures/zone_report/measure.xml +14 -12
  19. data/lib/{openstudio-calibration-measures.rb → openstudio-calibration.rb} +1 -1
  20. data/lib/openstudio/{calibration_measures.rb → calibration.rb} +2 -2
  21. data/lib/openstudio/{calibration_measures → calibration}/extension.rb +1 -1
  22. data/lib/openstudio/{calibration_measures → calibration}/version.rb +2 -2
  23. data/openstudio-calibration.gemspec +38 -0
  24. metadata +37 -54
  25. data/lib/measures/AddMonthlyUtilityData/tests/AddMonthlyUtilityData_Test.rb +0 -88
  26. data/lib/measures/AddMonthlyUtilityData/tests/electric_billed_usages.json +0 -198
  27. data/lib/measures/AddMonthlyUtilityData/tests/gas_billed_usages.json +0 -198
  28. data/lib/measures/CalibrationReports/tests/CalibrationReports_Test.rb +0 -523
  29. data/lib/measures/CalibrationReports/tests/ExampleModel.osm +0 -10497
  30. data/lib/measures/CalibrationReports/tests/ExampleModelNoDemandInput.osm +0 -10560
  31. data/lib/measures/CalibrationReports/tests/ExampleModelNoGasInput.osm +0 -10456
  32. data/lib/measures/CalibrationReports/tests/USA_CO_Golden-NREL.724666_TMY3.epw +0 -8768
  33. data/lib/measures/CalibrationReportsEnhanced/tests/CalibrationReportsEnhanced_Test.rb +0 -734
  34. data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel.osm +0 -10497
  35. data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel_FuelOil.osm +0 -12740
  36. data/lib/measures/CalibrationReportsEnhanced/tests/USA_CO_Golden-NREL.724666_TMY3.epw +0 -8768
  37. data/lib/measures/CalibrationReportsEnhanced21/LICENSE.md +0 -27
  38. data/lib/measures/CalibrationReportsEnhanced21/README.md +0 -109
  39. data/lib/measures/CalibrationReportsEnhanced21/README.md.erb +0 -42
  40. data/lib/measures/CalibrationReportsEnhanced21/measure.rb +0 -690
  41. data/lib/measures/CalibrationReportsEnhanced21/measure.xml +0 -269
  42. data/lib/measures/CalibrationReportsEnhanced21/resources/report.html.in +0 -380
  43. data/lib/measures/MaalkaMonthlyJSONUtilityData/LICENSE.md +0 -27
  44. data/lib/measures/MaalkaMonthlyJSONUtilityData/README.md +0 -104
  45. data/lib/measures/MaalkaMonthlyJSONUtilityData/README.md.erb +0 -42
  46. data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.rb +0 -304
  47. data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.xml +0 -216
  48. data/openstudio-calibration-measures.gemspec +0 -30
@@ -1,216 +0,0 @@
1
- <measure>
2
- <schema_version>3.0</schema_version>
3
- <name>maalka_monthly_json_utility_data</name>
4
- <uid>afe82cf5-3e3a-43ea-b31e-8289ff268bed</uid>
5
- <version_id>16d24197-d1f1-4fbf-ad4d-3aa2ede1c90f</version_id>
6
- <version_modified>20200325T030944Z</version_modified>
7
- <xml_checksum>057E8D9D</xml_checksum>
8
- <class_name>MaalkaMonthlyJSONUtilityData</class_name>
9
- <display_name>Maalka Formatted Monthly JSON Utility Data</display_name>
10
- <description>Maalka Formatted Monthly JSON Utility Data</description>
11
- <modeler_description>Add Maalka Formatted Monthly JSON Utility Data to OSM as a UtilityBill Object</modeler_description>
12
- <arguments>
13
- <argument>
14
- <name>json</name>
15
- <display_name>Path to JSON Data.</display_name>
16
- <description>Path to JSON Data. resources is default directory name of uploaded files in the server.</description>
17
- <type>String</type>
18
- <required>true</required>
19
- <model_dependent>false</model_dependent>
20
- <default_value>../../../lib/resources/sample_json.json</default_value>
21
- </argument>
22
- <argument>
23
- <name>variable_name</name>
24
- <display_name>Variable name</display_name>
25
- <description>Name of the Utility Bill Object. For Calibration Report use Electric Bill or Gas Bill</description>
26
- <type>String</type>
27
- <required>true</required>
28
- <model_dependent>false</model_dependent>
29
- <default_value>Electric Bill</default_value>
30
- </argument>
31
- <argument>
32
- <name>maalka_fuel_type</name>
33
- <display_name>Maalka Fuel Type in JSON</display_name>
34
- <description>Maalka Fuel Type in JSON</description>
35
- <type>Choice</type>
36
- <required>true</required>
37
- <model_dependent>false</model_dependent>
38
- <default_value>electric</default_value>
39
- <choices>
40
- <choice>
41
- <value>electric</value>
42
- <display_name>electric</display_name>
43
- </choice>
44
- <choice>
45
- <value>naturalGas</value>
46
- <display_name>naturalGas</display_name>
47
- </choice>
48
- </choices>
49
- </argument>
50
- <argument>
51
- <name>fuel_type</name>
52
- <display_name>OpenStudio Fuel Type</display_name>
53
- <description>OpenStudio Fuel Type</description>
54
- <type>Choice</type>
55
- <required>true</required>
56
- <model_dependent>false</model_dependent>
57
- <default_value>Electricity</default_value>
58
- <choices>
59
- <choice>
60
- <value>NaturalGas</value>
61
- <display_name>NaturalGas</display_name>
62
- </choice>
63
- <choice>
64
- <value>Electricity</value>
65
- <display_name>Electricity</display_name>
66
- </choice>
67
- <choice>
68
- <value>PropaneGas</value>
69
- <display_name>PropaneGas</display_name>
70
- </choice>
71
- </choices>
72
- </argument>
73
- <argument>
74
- <name>consumption_unit</name>
75
- <display_name>OpenStudio Consumption Unit</display_name>
76
- <description>OpenStudio Consumption Unit (usually kWh or therms)</description>
77
- <type>Choice</type>
78
- <required>true</required>
79
- <model_dependent>false</model_dependent>
80
- <default_value>kWh</default_value>
81
- <choices>
82
- <choice>
83
- <value>kWh</value>
84
- <display_name>kWh</display_name>
85
- </choice>
86
- <choice>
87
- <value>therms</value>
88
- <display_name>therms</display_name>
89
- </choice>
90
- </choices>
91
- </argument>
92
- <argument>
93
- <name>data_key_name</name>
94
- <display_name>Maalka data key name in JSON</display_name>
95
- <description>Maalka data key name in JSON (tot_kwh or tot_therms)</description>
96
- <type>Choice</type>
97
- <required>true</required>
98
- <model_dependent>false</model_dependent>
99
- <default_value>tot_kwh</default_value>
100
- <choices>
101
- <choice>
102
- <value>tot_kwh</value>
103
- <display_name>tot_kwh</display_name>
104
- </choice>
105
- <choice>
106
- <value>tot_therms</value>
107
- <display_name>tot_therms</display_name>
108
- </choice>
109
- </choices>
110
- </argument>
111
- <argument>
112
- <name>start_date</name>
113
- <display_name>Start date</display_name>
114
- <description>Start date format %Y%m%dT%H%M%S with Hour Min Sec optional</description>
115
- <type>String</type>
116
- <required>true</required>
117
- <model_dependent>false</model_dependent>
118
- <default_value>2013-01-1</default_value>
119
- </argument>
120
- <argument>
121
- <name>end_date</name>
122
- <display_name>End date</display_name>
123
- <description>End date format %Y%m%dT%H%M%S with Hour Min Sec optional</description>
124
- <type>String</type>
125
- <required>true</required>
126
- <model_dependent>false</model_dependent>
127
- <default_value>2013-12-31</default_value>
128
- </argument>
129
- <argument>
130
- <name>remove_existing_data</name>
131
- <display_name>remove all existing Utility Bill data objects from model</display_name>
132
- <description>remove all existing Utility Bill data objects from model</description>
133
- <type>Boolean</type>
134
- <required>true</required>
135
- <model_dependent>false</model_dependent>
136
- <default_value>false</default_value>
137
- <choices>
138
- <choice>
139
- <value>true</value>
140
- <display_name>true</display_name>
141
- </choice>
142
- <choice>
143
- <value>false</value>
144
- <display_name>false</display_name>
145
- </choice>
146
- </choices>
147
- </argument>
148
- <argument>
149
- <name>set_runperiod</name>
150
- <display_name>Set RunPeriod Object in model to use start and end dates</display_name>
151
- <description>Set RunPeriod Object in model to use start and end dates. Only needed once if multiple copies of measure being used.</description>
152
- <type>Boolean</type>
153
- <required>true</required>
154
- <model_dependent>false</model_dependent>
155
- <default_value>false</default_value>
156
- <choices>
157
- <choice>
158
- <value>true</value>
159
- <display_name>true</display_name>
160
- </choice>
161
- <choice>
162
- <value>false</value>
163
- <display_name>false</display_name>
164
- </choice>
165
- </choices>
166
- </argument>
167
- </arguments>
168
- <outputs/>
169
- <provenances/>
170
- <tags>
171
- <tag>Whole Building.Space Types</tag>
172
- </tags>
173
- <attributes>
174
- <attribute>
175
- <name>Measure Type</name>
176
- <value>ModelMeasure</value>
177
- <datatype>string</datatype>
178
- </attribute>
179
- <attribute>
180
- <name>Uses SketchUp API</name>
181
- <value>false</value>
182
- <datatype>boolean</datatype>
183
- </attribute>
184
- </attributes>
185
- <files>
186
- <file>
187
- <filename>LICENSE.md</filename>
188
- <filetype>md</filetype>
189
- <usage_type>license</usage_type>
190
- <checksum>E0468DD6</checksum>
191
- </file>
192
- <file>
193
- <filename>README.md.erb</filename>
194
- <filetype>erb</filetype>
195
- <usage_type>readmeerb</usage_type>
196
- <checksum>703C9964</checksum>
197
- </file>
198
- <file>
199
- <filename>README.md</filename>
200
- <filetype>md</filetype>
201
- <usage_type>readme</usage_type>
202
- <checksum>6B54533E</checksum>
203
- </file>
204
- <file>
205
- <version>
206
- <software_program>OpenStudio</software_program>
207
- <identifier>2.1.0</identifier>
208
- <min_compatible>2.1.0</min_compatible>
209
- </version>
210
- <filename>measure.rb</filename>
211
- <filetype>rb</filetype>
212
- <usage_type>script</usage_type>
213
- <checksum>9D8320DF</checksum>
214
- </file>
215
- </files>
216
- </measure>
@@ -1,30 +0,0 @@
1
- lib = File.expand_path('lib', __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'openstudio/calibration_measures/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'openstudio-calibration'
7
- spec.version = OpenStudio::CalibrationMeasures::VERSION
8
- spec.authors = ['Brian Ball', 'Nicholas Long']
9
- spec.email = ['brian.ball@nrel.gov', 'nicholas.long@nrel.gov']
10
-
11
- spec.summary = 'Library and measures for OpenStudio Calibration'
12
- spec.description = 'Library and measures for OpenStudio Calibration'
13
- spec.homepage = 'https://openstudio.net'
14
-
15
- # Specify which files should be added to the gem when it is released.
16
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
18
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
- end
20
- spec.bindir = 'exe'
21
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
- spec.require_paths = ['lib']
23
-
24
- spec.add_dependency 'openstudio-extension', '~> 0.1.6'
25
- spec.add_dependency 'openstudio-standards', '~> 0.2.10'
26
-
27
- spec.add_development_dependency 'bundler', '~> 1.14'
28
- spec.add_development_dependency 'rake', '12.3.1'
29
- spec.add_development_dependency 'rspec', '3.7.0'
30
- end