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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c95423361383f17528b0313242f35e72c0c67207
4
- data.tar.gz: 4c38a8d7c9d052ff18167e6bd8cac75b6e07b0d2
2
+ SHA256:
3
+ metadata.gz: 46476bb3ba2fca37f17d7d8cc3a622e9d7358fdffff5fc19547cfe021de0f5dd
4
+ data.tar.gz: 43c16b37cb7d0cd0d35f7577da2c492737abefaca0b5ad9ec42dc1a65b3766ef
5
5
  SHA512:
6
- metadata.gz: d1d76351d2e6ae6b14fbe6319f69d4607aa81a0d7f579d2f12fb8563d46776c99eab45affc7ae7a458a8fdf0964cf68865a4afacca95f0c6aafa4bdeaabc99f7
7
- data.tar.gz: 02b461db974b10181895c288e6d2d8985141a56453011f1fd3baa385957a4498d2c347486363914bcb21662904739b27faf3eee804a20b99b77fcd040bb60373
6
+ metadata.gz: 5b6833492461e2cfc7acd860fcd2b7cad21b956ce3715c6edbe8c8b055e4cc1784627c781e96714dae019da71b5b953fbfb4901f1a9d6ce3f181c551592a6873
7
+ data.tar.gz: c432f1fbbfdabb763f5b1a40de226dfa9d93eba0756731231bfa0f2beac29bec0d4c0c2325631db990e6833a067fe528e68be0fb3a9967c4093d052b8ea3890e
data/.gitignore CHANGED
@@ -27,3 +27,4 @@
27
27
  # ignore files made when run openstudio measure -r locally for testing
28
28
  lib/measures/.rubocop.yml
29
29
  lib/test/*
30
+ test_results/
@@ -0,0 +1,5 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'spec/test_measures/**/*'
4
+ inherit_from:
5
+ - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v3.yml
@@ -1,18 +1,33 @@
1
- # OpenStudio Calibration Gem
1
+ # OpenStudio Calibration Measures Gem
2
2
 
3
- ## Version 0.1.3
3
+ ## Version 0.3.0
4
4
 
5
- * Require as openstudio-calibration-measures (not openstudio-calibration)
5
+ * There project was misnamed. Moved to be called `openstudio-calibration`.
6
+ * Support for OpenStudio 3.1
7
+ * Update OpenStudio Standards to 0.2.12
8
+ * Update OpenStudio Extension gem to 0.3.1
6
9
 
7
- ## Version 0.1.2
10
+ ## Version 0.2.0
8
11
 
9
- * Fix name of gem in gemspec!
12
+ * Note that this version was never released to RubyGems
13
+ * Support for OpenStudio 3.0
14
+ * Upgrade Bundler to 2.1.x
15
+ * Restrict to Ruby ~> 2.5.0
16
+ * Removed simplecov forked dependency
17
+ * Upgraded openstudio-extension to 0.2.3
18
+ * Updated measure tester to 0.2.0 (removes need for github gem in downstream projects)
19
+ * Upgraded openstudio-standards to 0.2.11
20
+ * Exclude measure tests from being released with the gem (reduces the size of the installed gem significantly)
10
21
 
11
- ## Version 0.1.1
22
+ ## Version 0.1.3
12
23
 
13
- * Fix name of gem
24
+ * Require as openstudio-calibration-measures (not openstudio-calibration)
14
25
 
15
- ## Version 0.1.0
26
+ ## Version 0.1.2
16
27
 
17
28
  * Initial release of the calibration measures gem.
18
29
  * Supports OpenStudio 2.9.x series.
30
+
31
+ ## Version 0.1.1 (yanked)
32
+ ## Version 0.1.0 (yanked)
33
+
data/Gemfile CHANGED
@@ -15,6 +15,3 @@ if allow_local && File.exist?('../OpenStudio-extension-gem')
15
15
  elsif allow_local
16
16
  gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop'
17
17
  end
18
-
19
- # simplecov has an unneccesary dependency on native json gem, use fork that does not require this
20
- gem 'simplecov', github: 'NREL/simplecov'
@@ -1,6 +1,10 @@
1
1
  //Jenkins pipelines are stored in shared libraries. Please see: https://github.com/NREL/cbci_jenkins_libs
2
2
 
3
+ @Library('cbci_shared_libs') _
3
4
 
4
- @Library('cbci_shared_libs@develop') _
5
+ // Build for PR to develop branch only.
6
+ if ((env.CHANGE_ID) && (env.CHANGE_TARGET) ) { // check if set
5
7
 
6
- openstudio_measures()
8
+ openstudio_extension_gems()
9
+
10
+ }
data/README.md CHANGED
@@ -9,7 +9,7 @@ Add this line to your application's Gemfile:
9
9
  ```ruby
10
10
  gem 'openstudio-calibration'
11
11
 
12
- require 'openstudio-calibration-measures'
12
+ require 'openstudio-calibration'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install 'openstudio-calibration-measures'
21
+ $ gem install 'openstudio-calibration'
22
22
 
23
23
  ## Usage
24
24
 
data/Rakefile CHANGED
@@ -38,13 +38,13 @@ require 'rspec/core/rake_task'
38
38
 
39
39
  RSpec::Core::RakeTask.new(:spec)
40
40
 
41
- require 'rubocop/rake_task'
42
- RuboCop::RakeTask.new
43
-
44
41
  # Load in the rake tasks from the base extension gem
45
42
  require 'openstudio/extension/rake_task'
46
- require 'openstudio/calibration_measures'
43
+ require 'openstudio/calibration'
47
44
  rake_task = OpenStudio::Extension::RakeTask.new
48
- rake_task.set_extension_class(OpenStudio::CalibrationMeasures::Extension)
45
+ rake_task.set_extension_class(OpenStudio::Calibration::Extension, 'nrel/openstudio-calibration-gem')
46
+
47
+ require 'openstudio_measure_tester/rake_task'
48
+ OpenStudioMeasureTester::RakeTask.new
49
49
 
50
50
  task default: :spec
@@ -2,16 +2,16 @@
2
2
 
3
3
  ###### (Automatically generated documentation)
4
4
 
5
- # TimeSeries Objective Function
5
+ #
6
6
 
7
7
  ## Description
8
- Creates Objective Function from Timeseries Data
8
+
9
9
 
10
10
  ## Modeler Description
11
- Creates Objective Function from Timeseries Data. The measure applies a Norm at each timestep between the difference of CSV metered data and SQL model data. A timeseries plot can also be created. Possible outputs are 'cvrmse', 'nmbe', 'simdata' = sum of the simulated data, 'csvdata' = sum of metered data, 'diff' = P Norm between the metered and simulated data if Norm is 1 or 2, else its just the Difference.
11
+
12
12
 
13
13
  ## Measure Type
14
- ReportingMeasure
14
+ ModelMeasure
15
15
 
16
16
  ## Taxonomy
17
17
 
@@ -19,175 +19,9 @@ ReportingMeasure
19
19
  ## Arguments
20
20
 
21
21
 
22
- ### Path to CSV file for the metered data
23
- Path to CSV file including file name.
24
- **Name:** csv_name,
25
- **Type:** String,
26
- **Units:** ,
27
- **Required:** true,
28
- **Model Dependent:** false
29
-
30
- ### CSV Time Header
31
- CSV Time Header Value. Used to determine the timestamp column in the CSV file
32
- **Name:** csv_time_header,
33
- **Type:** String,
34
- **Units:** ,
35
- **Required:** true,
36
- **Model Dependent:** false
37
-
38
- ### CSV variable name
39
- CSV variable name. Used to determine the variable column in the CSV file
40
- **Name:** csv_var,
41
- **Type:** String,
42
- **Units:** ,
43
- **Required:** true,
44
- **Model Dependent:** false
45
-
46
- ### Convert Units
47
- Convert Units in Metered Data
48
- **Name:** convert_data,
49
- **Type:** Choice,
50
- **Units:** ,
51
- **Required:** true,
52
- **Model Dependent:** false
53
-
54
- ### CSV variable display name
55
- CSV variable display name. Not yet Implemented
56
- **Name:** csv_var_dn,
57
- **Type:** String,
58
- **Units:** ,
59
- **Required:** true,
60
- **Model Dependent:** false
61
-
62
- ### Year in csv data timestamp
63
- Is the Year in the csv data timestamp => mm:dd:yy or mm:dd (true/false)
64
- **Name:** year,
65
- **Type:** Boolean,
66
- **Units:** ,
67
- **Required:** true,
68
- **Model Dependent:** false
69
-
70
- ### Seconds in csv data timestamp
71
- Is the Seconds in the csv data timestamp => hh:mm:ss or hh:mm (true/false)
72
- **Name:** seconds,
73
- **Type:** Boolean,
74
- **Units:** ,
75
- **Required:** true,
76
- **Model Dependent:** false
77
-
78
- ### SQL key value
79
- SQL key value for the SQL query to find the variable in the SQL file
80
- **Name:** key_value,
81
- **Type:** String,
82
- **Units:** ,
83
- **Required:** true,
84
- **Model Dependent:** false
85
-
86
- ### TimeSeries Name
87
- TimeSeries Name for the SQL query to find the variable in the SQL file
88
- **Name:** timeseries_name,
89
- **Type:** String,
90
- **Units:** ,
91
- **Required:** true,
92
- **Model Dependent:** false
93
-
94
- ### Reporting Frequency
95
- Reporting Frequency for SQL Query
96
- **Name:** reporting_frequency,
97
- **Type:** Choice,
98
- **Units:** ,
99
- **Required:** true,
100
- **Model Dependent:** false
101
-
102
- ### Environment Period
103
- Environment Period for SQL query
104
- **Name:** environment_period,
105
- **Type:** String,
106
- **Units:** ,
107
- **Required:** true,
108
- **Model Dependent:** false
109
-
110
- ### Norm of the difference of csv and sql
111
- Norm of the difference of csv and sql. 1 is absolute value. 2 is euclidean distance. 3 is raw difference.
112
- **Name:** norm,
113
- **Type:** Double,
114
- **Units:** ,
115
- **Required:** true,
116
- **Model Dependent:** false
117
-
118
- ### Scale factor to apply to the difference
119
- Scale factor to apply to the difference (1 is no scale)
120
- **Name:** scale,
121
- **Type:** Double,
122
- **Units:** ,
123
- **Required:** true,
124
- **Model Dependent:** false
125
-
126
- ### Find Available data in the SQL file
127
- Will RegisterInfo all the 'EnvPeriod', 'ReportingFrequencies', 'VariableNames', 'KeyValues' in the SQL file. Useful for debugging SQL issues.
128
- **Name:** find_avail,
129
- **Type:** Boolean,
130
- **Units:** ,
131
- **Required:** true,
132
- **Model Dependent:** false
133
-
134
- ### algorithm_download
135
- Make JSON data available for algorithm_download (true/false)
136
- **Name:** algorithm_download,
137
- **Type:** Boolean,
138
- **Units:** ,
139
- **Required:** true,
140
- **Model Dependent:** false
141
-
142
- ### plot_flag timeseries data
143
- Create plot of timeseries data (true/false)
144
- **Name:** plot_flag,
145
- **Type:** Boolean,
146
- **Units:** ,
147
- **Required:** true,
148
- **Model Dependent:** false
149
-
150
- ### Plot name
151
- Name to include in reporting file name.
152
- **Name:** plot_name,
153
- **Type:** String,
154
- **Units:** ,
155
- **Required:** true,
156
- **Model Dependent:** false
157
-
158
- ### verbose_messages
159
- verbose messages. Useful for debugging but MAJOR Performance Hit.
160
- **Name:** verbose_messages,
161
- **Type:** Boolean,
162
- **Units:** ,
163
- **Required:** true,
164
- **Model Dependent:** false
165
-
166
- ### warning_messages
167
- Warn on missing data.
168
- **Name:** warning_messages,
169
- **Type:** Boolean,
170
- **Units:** ,
171
- **Required:** true,
172
- **Model Dependent:** false
173
-
174
- ### add_first_zero_for_plots
175
- Add a point of zero value to the plot at the beginning of the runperiod.
176
- **Name:** add_first_zero_for_plots,
177
- **Type:** Boolean,
178
- **Units:** ,
179
- **Required:** true,
180
- **Model Dependent:** false
181
-
182
- ### add_last_zero_for_plots
183
- Add a point of zero value to the plot at the end of the runperiod.
184
- **Name:** add_last_zero_for_plots,
185
- **Type:** Boolean,
186
- **Units:** ,
187
- **Required:** true,
188
- **Model Dependent:** false
189
22
 
190
23
 
24
+ This measure does not have any user arguments
191
25
 
192
26
 
193
27
 
@@ -534,14 +534,10 @@ class TimeseriesObjectiveFunction < OpenStudio::Measure::ReportingMeasure
534
534
  end
535
535
  mon = csv[row][0].split(' ')[0].split('/')[0].to_i
536
536
  day = csv[row][0].split(' ')[0].split('/')[1].to_i
537
- year = unless csv[row][0].split(' ')[0].split('/')[2].nil?
538
- csv[row][0].split(' ')[0].split('/')[2].to_i
539
- end
537
+ year = csv[row][0].split(' ')[0].split('/')[2]&.to_i
540
538
  hou = csv[row][0].split(' ')[1].split(':')[0].to_i
541
539
  min = csv[row][0].split(' ')[1].split(':')[1].to_i
542
- sec = unless csv[row][0].split(' ')[1].split(':')[2].nil?
543
- csv[row][0].split(' ')[1].split(':')[2].to_i
544
- end
540
+ sec = csv[row][0].split(' ')[1].split(':')[2]&.to_i
545
541
  if year.nil?
546
542
  dat = OpenStudio::Date.new(OpenStudio::MonthOfYear.new(cal[mon]), day)
547
543
  else
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>timeseries_objective_function</name>
4
5
  <uid>6804217d-4737-45f3-82df-b81393c29ce3</uid>
5
- <version_id>cd719981-451c-476a-b4d9-bec827cb0b9b</version_id>
6
- <version_modified>20200331T151749Z</version_modified>
6
+ <version_id>6cfcc6b3-3ced-42c1-9424-be644defa7f3</version_id>
7
+ <version_modified>20200512T180515Z</version_modified>
7
8
  <xml_checksum>FFE04372</xml_checksum>
8
9
  <class_name>TimeseriesObjectiveFunction</class_name>
9
10
  <display_name>TimeSeries Objective Function</display_name>
@@ -15,33 +16,43 @@
15
16
  <display_name>Path to CSV file for the metered data</display_name>
16
17
  <description>Path to CSV file including file name.</description>
17
18
  <type>String</type>
19
+ <units></units>
18
20
  <required>true</required>
19
21
  <model_dependent>false</model_dependent>
20
22
  <default_value>../../../lib/resources/mtr.csv</default_value>
23
+ <min_value></min_value>
24
+ <max_value></max_value>
21
25
  </argument>
22
26
  <argument>
23
27
  <name>csv_time_header</name>
24
28
  <display_name>CSV Time Header</display_name>
25
29
  <description>CSV Time Header Value. Used to determine the timestamp column in the CSV file</description>
26
30
  <type>String</type>
31
+ <units></units>
27
32
  <required>true</required>
28
33
  <model_dependent>false</model_dependent>
29
34
  <default_value>Date/Time</default_value>
35
+ <min_value></min_value>
36
+ <max_value></max_value>
30
37
  </argument>
31
38
  <argument>
32
39
  <name>csv_var</name>
33
40
  <display_name>CSV variable name</display_name>
34
41
  <description>CSV variable name. Used to determine the variable column in the CSV file</description>
35
42
  <type>String</type>
43
+ <units></units>
36
44
  <required>true</required>
37
45
  <model_dependent>false</model_dependent>
38
46
  <default_value>Whole Building:Facility Total Electric Demand Power [W](TimeStep)</default_value>
47
+ <min_value></min_value>
48
+ <max_value></max_value>
39
49
  </argument>
40
50
  <argument>
41
51
  <name>convert_data</name>
42
52
  <display_name>Convert Units</display_name>
43
53
  <description>Convert Units in Metered Data</description>
44
54
  <type>Choice</type>
55
+ <units></units>
45
56
  <required>true</required>
46
57
  <model_dependent>false</model_dependent>
47
58
  <default_value>None</default_value>
@@ -67,21 +78,27 @@
67
78
  <display_name>None</display_name>
68
79
  </choice>
69
80
  </choices>
81
+ <min_value></min_value>
82
+ <max_value></max_value>
70
83
  </argument>
71
84
  <argument>
72
85
  <name>csv_var_dn</name>
73
86
  <display_name>CSV variable display name</display_name>
74
87
  <description>CSV variable display name. Not yet Implemented</description>
75
88
  <type>String</type>
89
+ <units></units>
76
90
  <required>true</required>
77
91
  <model_dependent>false</model_dependent>
78
92
  <default_value></default_value>
93
+ <min_value></min_value>
94
+ <max_value></max_value>
79
95
  </argument>
80
96
  <argument>
81
97
  <name>year</name>
82
98
  <display_name>Year in csv data timestamp</display_name>
83
- <description>Is the Year in the csv data timestamp => mm:dd:yy or mm:dd (true/false)</description>
99
+ <description>Is the Year in the csv data timestamp =&gt; mm:dd:yy or mm:dd (true/false)</description>
84
100
  <type>Boolean</type>
101
+ <units></units>
85
102
  <required>true</required>
86
103
  <model_dependent>false</model_dependent>
87
104
  <default_value>true</default_value>
@@ -95,12 +112,15 @@
95
112
  <display_name>false</display_name>
96
113
  </choice>
97
114
  </choices>
115
+ <min_value></min_value>
116
+ <max_value></max_value>
98
117
  </argument>
99
118
  <argument>
100
119
  <name>seconds</name>
101
120
  <display_name>Seconds in csv data timestamp</display_name>
102
- <description>Is the Seconds in the csv data timestamp => hh:mm:ss or hh:mm (true/false)</description>
121
+ <description>Is the Seconds in the csv data timestamp =&gt; hh:mm:ss or hh:mm (true/false)</description>
103
122
  <type>Boolean</type>
123
+ <units></units>
104
124
  <required>true</required>
105
125
  <model_dependent>false</model_dependent>
106
126
  <default_value>true</default_value>
@@ -114,32 +134,42 @@
114
134
  <display_name>false</display_name>
115
135
  </choice>
116
136
  </choices>
137
+ <min_value></min_value>
138
+ <max_value></max_value>
117
139
  </argument>
118
140
  <argument>
119
141
  <name>key_value</name>
120
142
  <display_name>SQL key value</display_name>
121
143
  <description>SQL key value for the SQL query to find the variable in the SQL file</description>
122
144
  <type>String</type>
145
+ <units></units>
123
146
  <required>true</required>
124
147
  <model_dependent>false</model_dependent>
125
148
  <default_value></default_value>
149
+ <min_value></min_value>
150
+ <max_value></max_value>
126
151
  </argument>
127
152
  <argument>
128
153
  <name>timeseries_name</name>
129
154
  <display_name>TimeSeries Name</display_name>
130
155
  <description>TimeSeries Name for the SQL query to find the variable in the SQL file</description>
131
156
  <type>String</type>
157
+ <units></units>
132
158
  <required>true</required>
133
159
  <model_dependent>false</model_dependent>
134
160
  <default_value>Facility Total Electric Demand Power</default_value>
161
+ <min_value></min_value>
162
+ <max_value></max_value>
135
163
  </argument>
136
164
  <argument>
137
165
  <name>reporting_frequency</name>
138
166
  <display_name>Reporting Frequency</display_name>
139
167
  <description>Reporting Frequency for SQL Query</description>
140
168
  <type>Choice</type>
169
+ <units></units>
141
170
  <required>true</required>
142
171
  <model_dependent>false</model_dependent>
172
+ <default_value></default_value>
143
173
  <choices>
144
174
  <choice>
145
175
  <value>Detailed</value>
@@ -166,39 +196,51 @@
166
196
  <display_name>RunPeriod</display_name>
167
197
  </choice>
168
198
  </choices>
199
+ <min_value></min_value>
200
+ <max_value></max_value>
169
201
  </argument>
170
202
  <argument>
171
203
  <name>environment_period</name>
172
204
  <display_name>Environment Period</display_name>
173
205
  <description>Environment Period for SQL query</description>
174
206
  <type>String</type>
207
+ <units></units>
175
208
  <required>true</required>
176
209
  <model_dependent>false</model_dependent>
177
210
  <default_value>RUN PERIOD 1</default_value>
211
+ <min_value></min_value>
212
+ <max_value></max_value>
178
213
  </argument>
179
214
  <argument>
180
215
  <name>norm</name>
181
216
  <display_name>Norm of the difference of csv and sql</display_name>
182
217
  <description>Norm of the difference of csv and sql. 1 is absolute value. 2 is euclidean distance. 3 is raw difference.</description>
183
218
  <type>Double</type>
219
+ <units></units>
184
220
  <required>true</required>
185
221
  <model_dependent>false</model_dependent>
186
222
  <default_value>1</default_value>
223
+ <min_value></min_value>
224
+ <max_value></max_value>
187
225
  </argument>
188
226
  <argument>
189
227
  <name>scale</name>
190
228
  <display_name>Scale factor to apply to the difference</display_name>
191
229
  <description>Scale factor to apply to the difference (1 is no scale)</description>
192
230
  <type>Double</type>
231
+ <units></units>
193
232
  <required>true</required>
194
233
  <model_dependent>false</model_dependent>
195
234
  <default_value>1</default_value>
235
+ <min_value></min_value>
236
+ <max_value></max_value>
196
237
  </argument>
197
238
  <argument>
198
239
  <name>find_avail</name>
199
240
  <display_name>Find Available data in the SQL file</display_name>
200
241
  <description>Will RegisterInfo all the 'EnvPeriod', 'ReportingFrequencies', 'VariableNames', 'KeyValues' in the SQL file. Useful for debugging SQL issues.</description>
201
242
  <type>Boolean</type>
243
+ <units></units>
202
244
  <required>true</required>
203
245
  <model_dependent>false</model_dependent>
204
246
  <default_value>true</default_value>
@@ -212,12 +254,15 @@
212
254
  <display_name>false</display_name>
213
255
  </choice>
214
256
  </choices>
257
+ <min_value></min_value>
258
+ <max_value></max_value>
215
259
  </argument>
216
260
  <argument>
217
261
  <name>algorithm_download</name>
218
262
  <display_name>algorithm_download</display_name>
219
263
  <description>Make JSON data available for algorithm_download (true/false)</description>
220
264
  <type>Boolean</type>
265
+ <units></units>
221
266
  <required>true</required>
222
267
  <model_dependent>false</model_dependent>
223
268
  <default_value>false</default_value>
@@ -231,12 +276,15 @@
231
276
  <display_name>false</display_name>
232
277
  </choice>
233
278
  </choices>
279
+ <min_value></min_value>
280
+ <max_value></max_value>
234
281
  </argument>
235
282
  <argument>
236
283
  <name>plot_flag</name>
237
284
  <display_name>plot_flag timeseries data</display_name>
238
285
  <description>Create plot of timeseries data (true/false)</description>
239
286
  <type>Boolean</type>
287
+ <units></units>
240
288
  <required>true</required>
241
289
  <model_dependent>false</model_dependent>
242
290
  <default_value>true</default_value>
@@ -250,21 +298,27 @@
250
298
  <display_name>false</display_name>
251
299
  </choice>
252
300
  </choices>
301
+ <min_value></min_value>
302
+ <max_value></max_value>
253
303
  </argument>
254
304
  <argument>
255
305
  <name>plot_name</name>
256
306
  <display_name>Plot name</display_name>
257
307
  <description>Name to include in reporting file name.</description>
258
308
  <type>String</type>
309
+ <units></units>
259
310
  <required>true</required>
260
311
  <model_dependent>false</model_dependent>
261
312
  <default_value></default_value>
313
+ <min_value></min_value>
314
+ <max_value></max_value>
262
315
  </argument>
263
316
  <argument>
264
317
  <name>verbose_messages</name>
265
318
  <display_name>verbose_messages</display_name>
266
319
  <description>verbose messages. Useful for debugging but MAJOR Performance Hit.</description>
267
320
  <type>Boolean</type>
321
+ <units></units>
268
322
  <required>true</required>
269
323
  <model_dependent>false</model_dependent>
270
324
  <default_value>false</default_value>
@@ -278,12 +332,15 @@
278
332
  <display_name>false</display_name>
279
333
  </choice>
280
334
  </choices>
335
+ <min_value></min_value>
336
+ <max_value></max_value>
281
337
  </argument>
282
338
  <argument>
283
339
  <name>warning_messages</name>
284
340
  <display_name>warning_messages</display_name>
285
341
  <description>Warn on missing data.</description>
286
342
  <type>Boolean</type>
343
+ <units></units>
287
344
  <required>true</required>
288
345
  <model_dependent>false</model_dependent>
289
346
  <default_value>true</default_value>
@@ -297,12 +354,15 @@
297
354
  <display_name>false</display_name>
298
355
  </choice>
299
356
  </choices>
357
+ <min_value></min_value>
358
+ <max_value></max_value>
300
359
  </argument>
301
360
  <argument>
302
361
  <name>add_first_zero_for_plots</name>
303
362
  <display_name>add_first_zero_for_plots</display_name>
304
363
  <description>Add a point of zero value to the plot at the beginning of the runperiod.</description>
305
364
  <type>Boolean</type>
365
+ <units></units>
306
366
  <required>true</required>
307
367
  <model_dependent>false</model_dependent>
308
368
  <default_value>false</default_value>
@@ -316,12 +376,15 @@
316
376
  <display_name>false</display_name>
317
377
  </choice>
318
378
  </choices>
379
+ <min_value></min_value>
380
+ <max_value></max_value>
319
381
  </argument>
320
382
  <argument>
321
383
  <name>add_last_zero_for_plots</name>
322
384
  <display_name>add_last_zero_for_plots</display_name>
323
385
  <description>Add a point of zero value to the plot at the end of the runperiod.</description>
324
386
  <type>Boolean</type>
387
+ <units></units>
325
388
  <required>true</required>
326
389
  <model_dependent>false</model_dependent>
327
390
  <default_value>false</default_value>
@@ -335,6 +398,8 @@
335
398
  <display_name>false</display_name>
336
399
  </choice>
337
400
  </choices>
401
+ <min_value></min_value>
402
+ <max_value></max_value>
338
403
  </argument>
339
404
  </arguments>
340
405
  <outputs>
@@ -342,39 +407,49 @@
342
407
  <name>diff</name>
343
408
  <display_name>diff</display_name>
344
409
  <short_name>diff</short_name>
410
+ <description></description>
345
411
  <type>Double</type>
412
+ <units></units>
346
413
  <model_dependent>false</model_dependent>
347
414
  </output>
348
415
  <output>
349
416
  <name>simdata</name>
350
417
  <display_name>simdata</display_name>
351
418
  <short_name>simdata</short_name>
419
+ <description></description>
352
420
  <type>Double</type>
421
+ <units></units>
353
422
  <model_dependent>false</model_dependent>
354
423
  </output>
355
424
  <output>
356
425
  <name>csvdata</name>
357
426
  <display_name>csvdata</display_name>
358
427
  <short_name>csvdata</short_name>
428
+ <description></description>
359
429
  <type>Double</type>
430
+ <units></units>
360
431
  <model_dependent>false</model_dependent>
361
432
  </output>
362
433
  <output>
363
434
  <name>cvrmse</name>
364
435
  <display_name>cvrmse</display_name>
365
436
  <short_name>cvrmse</short_name>
437
+ <description></description>
366
438
  <type>Double</type>
439
+ <units></units>
367
440
  <model_dependent>false</model_dependent>
368
441
  </output>
369
442
  <output>
370
443
  <name>nmbe</name>
371
444
  <display_name>nmbe</display_name>
372
445
  <short_name>nmbe</short_name>
446
+ <description></description>
373
447
  <type>Double</type>
448
+ <units></units>
374
449
  <model_dependent>false</model_dependent>
375
450
  </output>
376
451
  </outputs>
377
- <provenances/>
452
+ <provenances />
378
453
  <tags>
379
454
  <tag>Reporting.QAQC</tag>
380
455
  </tags>
@@ -402,12 +477,6 @@
402
477
  <usage_type>readmeerb</usage_type>
403
478
  <checksum>703C9964</checksum>
404
479
  </file>
405
- <file>
406
- <filename>README.md</filename>
407
- <filetype>md</filetype>
408
- <usage_type>readme</usage_type>
409
- <checksum>3F176FE0</checksum>
410
- </file>
411
480
  <file>
412
481
  <filename>LICENSE.md</filename>
413
482
  <filetype>md</filetype>
@@ -423,13 +492,20 @@
423
492
  <filename>measure.rb</filename>
424
493
  <filetype>rb</filetype>
425
494
  <usage_type>script</usage_type>
426
- <checksum>5DF37720</checksum>
495
+ <checksum>D0ED8BFA</checksum>
496
+ </file>
497
+ <file>
498
+ <filename>README.md</filename>
499
+ <filetype>md</filetype>
500
+ <usage_type>readme</usage_type>
501
+ <checksum>7DE1F2CF</checksum>
427
502
  </file>
428
503
  <file>
429
504
  <filename>report.html.erb</filename>
430
505
  <filetype>erb</filetype>
431
506
  <usage_type>resource</usage_type>
432
- <checksum>0BA3EB44</checksum>
507
+ <checksum>40F6235C</checksum>
433
508
  </file>
434
509
  </files>
435
510
  </measure>
511
+ <error>wrong number of arguments (given 1, expected 0)</error>