urbanopt-reporting 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/nightly_ci_build.yml +57 -0
- data/CHANGELOG.md +17 -0
- data/CONTRIBUTING.md +2 -2
- data/Gemfile +5 -0
- data/LICENSE.md +16 -11
- data/README.md +1 -0
- data/Rakefile +2 -37
- data/building_loads.csv +52561 -0
- data/doc_templates/LICENSE.md +16 -11
- data/doc_templates/copyright_erb.txt +22 -16
- data/doc_templates/copyright_js.txt +2 -2
- data/doc_templates/copyright_ruby.txt +2 -37
- data/docs/package-lock.json +3992 -3566
- data/lib/measures/.rubocop.yml +1 -2
- data/lib/measures/default_feature_reports/LICENSE.md +23 -18
- data/lib/measures/default_feature_reports/README.md +43 -5
- data/lib/measures/default_feature_reports/measure.rb +21 -59
- data/lib/measures/default_feature_reports/measure.xml +38 -46
- data/lib/measures/export_modelica_loads/LICENSE.md +23 -18
- data/lib/measures/export_modelica_loads/measure.rb +25 -64
- data/lib/measures/export_modelica_loads/measure.xml +31 -31
- data/lib/measures/export_time_series_modelica/LICENSE.md +23 -18
- data/lib/measures/export_time_series_modelica/measure.rb +2 -37
- data/lib/measures/export_time_series_modelica/measure.xml +48 -42
- data/lib/measures/export_time_series_modelica/resources/os_lib_helper_methods.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/construction_cost.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/date.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/distributed_generation.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/end_use.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/end_uses.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/extension.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/feature_report.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/generator.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/location.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/logger.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/power_distribution.rb +10 -38
- data/lib/urbanopt/reporting/default_reports/program.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/qaqc_flags.rb +9 -44
- data/lib/urbanopt/reporting/default_reports/reporting_period.rb +6 -41
- data/lib/urbanopt/reporting/default_reports/scenario_power_distribution.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/scenario_power_distribution_cost.rb +5 -40
- data/lib/urbanopt/reporting/default_reports/scenario_report.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/schema/scenario_schema.json +1543 -1515
- data/lib/urbanopt/reporting/default_reports/solar_pv.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/storage.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/thermal_storage.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/timeseries_csv.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/validator.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/wind.rb +2 -37
- data/lib/urbanopt/reporting/default_reports.rb +2 -37
- data/lib/urbanopt/reporting/derived_extension.rb +2 -37
- data/lib/urbanopt/reporting/version.rb +3 -38
- data/lib/urbanopt/reporting.rb +2 -37
- data/urbanopt-reporting-gem.gemspec +5 -5
- metadata +16 -16
- data/.github/workflows/nightly_build.yml +0 -41
- data/Jenkinsfile +0 -10
@@ -1,41 +1,6 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
3
|
-
#
|
4
|
-
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
6
|
-
# are permitted provided that the following conditions are met:
|
7
|
-
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
9
|
-
# of conditions and the following disclaimer.
|
10
|
-
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
13
|
-
# materials provided with the distribution.
|
14
|
-
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
17
|
-
# prior written permission.
|
18
|
-
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
27
|
-
# consent of Alliance.
|
28
|
-
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md
|
39
4
|
# *********************************************************************************
|
40
5
|
|
41
6
|
require 'erb'
|
@@ -91,7 +56,7 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
91
56
|
result << OpenStudio::IdfObject.load('Output:Meter,WaterSystems:EnergyTransfer,timestep;').get # Joules
|
92
57
|
# these variables are used for the modelica export.
|
93
58
|
result << OpenStudio::IdfObject.load('Output:Variable,*,Zone Predicted Sensible Load to Setpoint Heat Transfer Rate,timestep;').get # watts according to e+
|
94
|
-
result << OpenStudio::IdfObject.load('Output:Variable
|
59
|
+
result << OpenStudio::IdfObject.load('Output:Variable,,Water Heater Total Demand Heat Transfer Rate,timestep;').get # Watts
|
95
60
|
|
96
61
|
return result
|
97
62
|
end
|
@@ -132,7 +97,7 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
132
97
|
quick_proc[-1] = quick_proc[-1].delete(')')
|
133
98
|
column += quick_proc
|
134
99
|
|
135
|
-
log "Took #{Time.now - start} to iterate"
|
100
|
+
# log "Took #{Time.now - start} to iterate"
|
136
101
|
end
|
137
102
|
|
138
103
|
log 'Appending column to data'
|
@@ -208,13 +173,13 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
208
173
|
timesteps_per_hour = model.getTimestep.numberOfTimestepsPerHour.to_i
|
209
174
|
timestep = 60 / timesteps_per_hour # timestep in minutes
|
210
175
|
|
211
|
-
|
212
|
-
if
|
176
|
+
sql_file = runner.lastEnergyPlusSqlFile
|
177
|
+
if sql_file.empty?
|
213
178
|
runner.registerError('Cannot find last sql file.')
|
214
179
|
return false
|
215
180
|
end
|
216
|
-
|
217
|
-
model.setSqlFile(
|
181
|
+
sql_file = sql_file.get
|
182
|
+
model.setSqlFile(sql_file)
|
218
183
|
|
219
184
|
# create a new csv with the values and save to the reports directory.
|
220
185
|
# assumptions:
|
@@ -230,7 +195,7 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
230
195
|
|
231
196
|
# just grab one of the variables to get the date/time stamps
|
232
197
|
attribute_name = 'Electricity:Facility'
|
233
|
-
ts =
|
198
|
+
ts = sql_file.timeSeries('RUN PERIOD 1', 'Zone Timestep', attribute_name)
|
234
199
|
if ts.empty?
|
235
200
|
runner.registerError("This feature does not have the attribute '#{attribute_name}' to enable this measure to work." \
|
236
201
|
'To resolve, simulate a building with electricity or remove this measure from your workflow.')
|
@@ -254,29 +219,29 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
254
219
|
end
|
255
220
|
|
256
221
|
# add in the other variables by columns -- should really pull this from the report variables defined above
|
257
|
-
extract_timeseries_into_matrix(
|
258
|
-
extract_timeseries_into_matrix(
|
259
|
-
extract_timeseries_into_matrix(
|
260
|
-
extract_timeseries_into_matrix(
|
261
|
-
extract_timeseries_into_matrix(
|
262
|
-
extract_timeseries_into_matrix(
|
263
|
-
extract_timeseries_into_matrix(
|
264
|
-
extract_timeseries_into_matrix(
|
265
|
-
extract_timeseries_into_matrix(
|
222
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Site Outdoor Air Drybulb Temperature', 'Environment', 0, timestep)
|
223
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Site Outdoor Air Relative Humidity', 'Environment', 0, timestep)
|
224
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Heating:Electricity', nil, 0, timestep)
|
225
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Heating:NaturalGas', nil, 0, timestep)
|
226
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Cooling:Electricity', nil, 0, timestep)
|
227
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Electricity:Facility', nil, 0, timestep)
|
228
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Gas:Facility', nil, 0, timestep)
|
229
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Heating:EnergyTransfer', nil, 0, timestep)
|
230
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Water Heater Total Demand Heat Transfer Rate', nil, 0, timestep)
|
266
231
|
|
267
232
|
# get all zones and save the names for later use in aggregation.
|
268
233
|
tz_names = []
|
269
234
|
model.getThermalZones.each do |tz|
|
270
235
|
tz_names << tz.name.get if tz.name.is_initialized
|
271
|
-
extract_timeseries_into_matrix(
|
272
|
-
extract_timeseries_into_matrix(
|
236
|
+
extract_timeseries_into_matrix(sql_file, rows, 'Zone Predicted Sensible Load to Setpoint Heat Transfer Rate', tz_names.last, 0, timestep)
|
237
|
+
# extract_timeseries_into_matrix(sql_file, rows, 'Water Heater Heating Rate', tz_names.last, 0, timestep)
|
273
238
|
end
|
274
239
|
|
275
240
|
# sum up a couple of the columns and create a new columns
|
276
241
|
create_new_variable_sum(rows, 'TotalSensibleLoad', 'ZonePredictedSensibleLoadtoSetpointHeatTransferRate')
|
277
242
|
create_new_variable_sum(rows, 'TotalCoolingSensibleLoad', 'ZonePredictedSensibleLoadtoSetpointHeatTransferRate', negative_only: true)
|
278
243
|
create_new_variable_sum(rows, 'TotalHeatingSensibleLoad', 'ZonePredictedSensibleLoadtoSetpointHeatTransferRate', positive_only: true)
|
279
|
-
create_new_variable_sum(rows, 'TotalWaterHeating', '
|
244
|
+
create_new_variable_sum(rows, 'TotalWaterHeating', 'WaterHeaterTotalDemandHeatTransferRate')
|
280
245
|
|
281
246
|
# convert this to CSV object
|
282
247
|
File.open('./building_loads.csv', 'w') do |f|
|
@@ -319,17 +284,13 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
319
284
|
|
320
285
|
File.open('./modelica.mos', 'w') do |f|
|
321
286
|
f << "#1\n"
|
322
|
-
f << "#
|
323
|
-
f << "#
|
324
|
-
f << "# Climate Zone: {{CLIMATEZONE}}\n"
|
325
|
-
f << "# Vintage: {{VINTAGE}}\n"
|
326
|
-
f << "# Simulation ID (for debugging): {{SIMID}}\n"
|
327
|
-
f << "# URL: https://github.com/urbanopt/openstudio-prototype-loads\n"
|
287
|
+
f << "#Exported loads from OpenStudio Reporting Measure\n"
|
288
|
+
f << "# Measure location: https://github.com/urbanopt/urbanopt-reporting-gem/tree/develop/lib/measures/export_modelica_loads\n"
|
328
289
|
f << "\n"
|
329
290
|
f << "#First column: Seconds in the year (loads are hourly)\n"
|
330
291
|
f << "#Second column: cooling loads in Watts (as negative numbers).\n"
|
331
292
|
f << "#Third column: space heating loads in Watts\n"
|
332
|
-
f << "#Fourth column: water heating in Watts\n"
|
293
|
+
f << "#Fourth column: water heating loads in Watts\n"
|
333
294
|
f << "\n"
|
334
295
|
f << "#Peak space cooling load = #{peak_cooling} Watts\n"
|
335
296
|
f << "#Peak space heating load = #{peak_heating} Watts\n"
|
@@ -358,7 +319,7 @@ class ExportModelicaLoads < OpenStudio::Measure::ReportingMeasure
|
|
358
319
|
|
359
320
|
return true
|
360
321
|
ensure
|
361
|
-
|
322
|
+
sql_file.close if sql_file
|
362
323
|
end
|
363
324
|
end
|
364
325
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>export_modelica_loads</name>
|
5
5
|
<uid>7051db01-2e55-4223-b5b5-fee615b68dd0</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>e682f518-4785-4917-802e-600023816cc3</version_id>
|
7
|
+
<version_modified>2024-01-08T22:54:10Z</version_modified>
|
8
8
|
<xml_checksum>2C8A3EEF</xml_checksum>
|
9
9
|
<class_name>ExportModelicaLoads</class_name>
|
10
10
|
<display_name>Export Modelica Loads</display_name>
|
@@ -29,6 +29,18 @@
|
|
29
29
|
</attribute>
|
30
30
|
</attributes>
|
31
31
|
<files>
|
32
|
+
<file>
|
33
|
+
<filename>LICENSE.md</filename>
|
34
|
+
<filetype>md</filetype>
|
35
|
+
<usage_type>license</usage_type>
|
36
|
+
<checksum>7247B202</checksum>
|
37
|
+
</file>
|
38
|
+
<file>
|
39
|
+
<filename>README.md</filename>
|
40
|
+
<filetype>md</filetype>
|
41
|
+
<usage_type>readme</usage_type>
|
42
|
+
<checksum>544E6A47</checksum>
|
43
|
+
</file>
|
32
44
|
<file>
|
33
45
|
<filename>README.md.erb</filename>
|
34
46
|
<filetype>erb</filetype>
|
@@ -42,10 +54,15 @@
|
|
42
54
|
<checksum>00000000</checksum>
|
43
55
|
</file>
|
44
56
|
<file>
|
45
|
-
<
|
46
|
-
|
47
|
-
|
48
|
-
|
57
|
+
<version>
|
58
|
+
<software_program>OpenStudio</software_program>
|
59
|
+
<identifier>3.0.1</identifier>
|
60
|
+
<min_compatible>3.0.1</min_compatible>
|
61
|
+
</version>
|
62
|
+
<filename>measure.rb</filename>
|
63
|
+
<filetype>rb</filetype>
|
64
|
+
<usage_type>script</usage_type>
|
65
|
+
<checksum>B130AAF4</checksum>
|
49
66
|
</file>
|
50
67
|
<file>
|
51
68
|
<filename>report.html.in</filename>
|
@@ -54,39 +71,22 @@
|
|
54
71
|
<checksum>3F69E3FB</checksum>
|
55
72
|
</file>
|
56
73
|
<file>
|
57
|
-
<filename>
|
58
|
-
<filetype>
|
59
|
-
<usage_type>readme</usage_type>
|
60
|
-
<checksum>544E6A47</checksum>
|
61
|
-
</file>
|
62
|
-
<file>
|
63
|
-
<filename>export_modelica_loads_test.rb</filename>
|
64
|
-
<filetype>rb</filetype>
|
74
|
+
<filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
|
75
|
+
<filetype>epw</filetype>
|
65
76
|
<usage_type>test</usage_type>
|
66
|
-
<checksum>
|
77
|
+
<checksum>BDF687C1</checksum>
|
67
78
|
</file>
|
68
79
|
<file>
|
69
80
|
<filename>example_model.osm</filename>
|
70
81
|
<filetype>osm</filetype>
|
71
82
|
<usage_type>test</usage_type>
|
72
|
-
<checksum>
|
73
|
-
</file>
|
74
|
-
<file>
|
75
|
-
<filename>LICENSE.md</filename>
|
76
|
-
<filetype>md</filetype>
|
77
|
-
<usage_type>license</usage_type>
|
78
|
-
<checksum>BBD19F47</checksum>
|
83
|
+
<checksum>39B6E26C</checksum>
|
79
84
|
</file>
|
80
85
|
<file>
|
81
|
-
<
|
82
|
-
<software_program>OpenStudio</software_program>
|
83
|
-
<identifier>3.0.1</identifier>
|
84
|
-
<min_compatible>3.0.1</min_compatible>
|
85
|
-
</version>
|
86
|
-
<filename>measure.rb</filename>
|
86
|
+
<filename>export_modelica_loads_test.rb</filename>
|
87
87
|
<filetype>rb</filetype>
|
88
|
-
<usage_type>
|
89
|
-
<checksum>
|
88
|
+
<usage_type>test</usage_type>
|
89
|
+
<checksum>4241CCBA</checksum>
|
90
90
|
</file>
|
91
91
|
</files>
|
92
92
|
</measure>
|
@@ -1,27 +1,32 @@
|
|
1
|
-
URBANopt (tm), Copyright (c) 2019-
|
1
|
+
URBANopt (tm), Copyright (c) 2019-2024, Alliance for Sustainable Energy, LLC, and other
|
2
2
|
contributors. All rights reserved.
|
3
3
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
5
|
are permitted provided that the following conditions are met:
|
6
6
|
|
7
|
-
Redistributions of source code must retain the above copyright notice, this list
|
7
|
+
Redistributions of source code must retain the above copyright notice, this list
|
8
8
|
of conditions and the following disclaimer.
|
9
9
|
|
10
|
-
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
-
list of conditions and the following disclaimer in the documentation and/or other
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
+
list of conditions and the following disclaimer in the documentation and/or other
|
12
12
|
materials provided with the distribution.
|
13
|
-
|
14
|
-
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
-
used to endorse or promote products derived from this software without specific
|
13
|
+
|
14
|
+
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
+
used to endorse or promote products derived from this software without specific
|
16
16
|
prior written permission.
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
OF
|
18
|
+
The name of the copyright holder(s), any contributors, the United States Government,
|
19
|
+
the United States Department of Energy, or any of their employees may not be used to
|
20
|
+
endorse or promote products derived from this software without specific prior written
|
21
|
+
permission from the respective party.
|
22
|
+
|
23
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
|
24
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
25
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
26
|
+
THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED
|
27
|
+
STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT,
|
28
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
29
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
30
|
+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
31
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
32
|
+
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,41 +1,6 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
3
|
-
#
|
4
|
-
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
6
|
-
# are permitted provided that the following conditions are met:
|
7
|
-
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
9
|
-
# of conditions and the following disclaimer.
|
10
|
-
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
13
|
-
# materials provided with the distribution.
|
14
|
-
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
17
|
-
# prior written permission.
|
18
|
-
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
27
|
-
# consent of Alliance.
|
28
|
-
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md
|
39
4
|
# *********************************************************************************
|
40
5
|
|
41
6
|
require 'erb'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>export_time_series_loads_csv</name>
|
5
5
|
<uid>9fcf6116-c2eb-43d6-93f0-e1bdd822f768</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>0b134568-d3a8-4ede-bf22-2010a173ea97</version_id>
|
7
|
+
<version_modified>2024-01-08T22:54:07Z</version_modified>
|
8
8
|
<xml_checksum>9BF1E6AC</xml_checksum>
|
9
9
|
<class_name>ExportTimeSeriesLoadsCSV</class_name>
|
10
10
|
<display_name>ExportTimeSeriesLoadsCSV</display_name>
|
@@ -72,6 +72,24 @@
|
|
72
72
|
</attribute>
|
73
73
|
</attributes>
|
74
74
|
<files>
|
75
|
+
<file>
|
76
|
+
<filename>LICENSE.md</filename>
|
77
|
+
<filetype>md</filetype>
|
78
|
+
<usage_type>license</usage_type>
|
79
|
+
<checksum>7247B202</checksum>
|
80
|
+
</file>
|
81
|
+
<file>
|
82
|
+
<filename>README.md</filename>
|
83
|
+
<filetype>md</filetype>
|
84
|
+
<usage_type>readme</usage_type>
|
85
|
+
<checksum>08F470AC</checksum>
|
86
|
+
</file>
|
87
|
+
<file>
|
88
|
+
<filename>README.md</filename>
|
89
|
+
<filetype>md</filetype>
|
90
|
+
<usage_type>readme</usage_type>
|
91
|
+
<checksum>08F470AC</checksum>
|
92
|
+
</file>
|
75
93
|
<file>
|
76
94
|
<filename>README.md.erb</filename>
|
77
95
|
<filetype>erb</filetype>
|
@@ -85,46 +103,33 @@
|
|
85
103
|
<checksum>00000000</checksum>
|
86
104
|
</file>
|
87
105
|
<file>
|
88
|
-
<
|
89
|
-
|
90
|
-
|
91
|
-
|
106
|
+
<version>
|
107
|
+
<software_program>OpenStudio</software_program>
|
108
|
+
<identifier>3.0.1</identifier>
|
109
|
+
<min_compatible>3.0.1</min_compatible>
|
110
|
+
</version>
|
111
|
+
<filename>measure.rb</filename>
|
112
|
+
<filetype>rb</filetype>
|
113
|
+
<usage_type>script</usage_type>
|
114
|
+
<checksum>EC8615DF</checksum>
|
92
115
|
</file>
|
93
116
|
<file>
|
94
|
-
<filename>
|
95
|
-
<filetype>
|
117
|
+
<filename>os_lib_helper_methods.rb</filename>
|
118
|
+
<filetype>rb</filetype>
|
96
119
|
<usage_type>resource</usage_type>
|
97
|
-
<checksum>
|
98
|
-
</file>
|
99
|
-
<file>
|
100
|
-
<filename>example_model.osm</filename>
|
101
|
-
<filetype>osm</filetype>
|
102
|
-
<usage_type>test</usage_type>
|
103
|
-
<checksum>15AD3659</checksum>
|
104
|
-
</file>
|
105
|
-
<file>
|
106
|
-
<filename>README.md</filename>
|
107
|
-
<filetype>md</filetype>
|
108
|
-
<usage_type>readme</usage_type>
|
109
|
-
<checksum>08F470AC</checksum>
|
120
|
+
<checksum>D65F0AAE</checksum>
|
110
121
|
</file>
|
111
122
|
<file>
|
112
|
-
<filename>
|
113
|
-
<filetype>
|
114
|
-
<usage_type>license</usage_type>
|
115
|
-
<checksum>BBD19F47</checksum>
|
116
|
-
</file>
|
117
|
-
<file>
|
118
|
-
<filename>os_lib_helper_methods.rb</filename>
|
119
|
-
<filetype>rb</filetype>
|
123
|
+
<filename>report.html.in</filename>
|
124
|
+
<filetype>in</filetype>
|
120
125
|
<usage_type>resource</usage_type>
|
121
|
-
<checksum>
|
126
|
+
<checksum>3F69E3FB</checksum>
|
122
127
|
</file>
|
123
128
|
<file>
|
124
|
-
<filename>
|
125
|
-
<filetype>
|
129
|
+
<filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
|
130
|
+
<filetype>epw</filetype>
|
126
131
|
<usage_type>test</usage_type>
|
127
|
-
<checksum>
|
132
|
+
<checksum>BDF687C1</checksum>
|
128
133
|
</file>
|
129
134
|
<file>
|
130
135
|
<filename>building_loads.csv</filename>
|
@@ -133,15 +138,16 @@
|
|
133
138
|
<checksum>393EEB17</checksum>
|
134
139
|
</file>
|
135
140
|
<file>
|
136
|
-
<
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
141
|
+
<filename>example_model.osm</filename>
|
142
|
+
<filetype>osm</filetype>
|
143
|
+
<usage_type>test</usage_type>
|
144
|
+
<checksum>15AD3659</checksum>
|
145
|
+
</file>
|
146
|
+
<file>
|
147
|
+
<filename>export_time_series_modelica_test.rb</filename>
|
142
148
|
<filetype>rb</filetype>
|
143
|
-
<usage_type>
|
144
|
-
<checksum>
|
149
|
+
<usage_type>test</usage_type>
|
150
|
+
<checksum>37D0F3F4</checksum>
|
145
151
|
</file>
|
146
152
|
</files>
|
147
153
|
</measure>
|
@@ -1,41 +1,6 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
3
|
-
#
|
4
|
-
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
6
|
-
# are permitted provided that the following conditions are met:
|
7
|
-
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
9
|
-
# of conditions and the following disclaimer.
|
10
|
-
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
13
|
-
# materials provided with the distribution.
|
14
|
-
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
17
|
-
# prior written permission.
|
18
|
-
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
27
|
-
# consent of Alliance.
|
28
|
-
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md
|
39
4
|
# *********************************************************************************
|
40
5
|
|
41
6
|
module OsLib_HelperMethods
|
@@ -1,41 +1,6 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
3
|
-
#
|
4
|
-
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
6
|
-
# are permitted provided that the following conditions are met:
|
7
|
-
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
9
|
-
# of conditions and the following disclaimer.
|
10
|
-
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
13
|
-
# materials provided with the distribution.
|
14
|
-
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
17
|
-
# prior written permission.
|
18
|
-
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
27
|
-
# consent of Alliance.
|
28
|
-
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md
|
39
4
|
# *********************************************************************************
|
40
5
|
|
41
6
|
require 'json'
|
@@ -1,41 +1,6 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
3
|
-
#
|
4
|
-
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
6
|
-
# are permitted provided that the following conditions are met:
|
7
|
-
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
9
|
-
# of conditions and the following disclaimer.
|
10
|
-
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
13
|
-
# materials provided with the distribution.
|
14
|
-
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
17
|
-
# prior written permission.
|
18
|
-
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
27
|
-
# consent of Alliance.
|
28
|
-
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md
|
39
4
|
# *********************************************************************************
|
40
5
|
|
41
6
|
require_relative 'validator'
|