openstudio-analysis 1.3.4 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,261 +1,269 @@
1
- OpenStudio(R) Analysis Gem Change Log
2
- ==================================
3
-
4
- Version 1.3.4
5
- -------------
6
- * Update licenses
7
- * Add download_zip, download_osm, download_osw, download_reports attributes to OSA
8
- * Add cli_verbose, cli_debug, initialize_worker_timeout, run_workflow_timeout, upload_results_timeout attributes to OSA
9
-
10
- Version 1.3.3
11
- -------------
12
- * Add arguments to .save_osa_zip() to add all files in weather and/or seed directories to zip file. defaults to false.
13
-
14
- Version 1.3.2
15
- -------------
16
- * Add array of search paths to .convert_osw() to find measures in various directories.
17
- * warn if :weather_file and :seed_model are not defined.
18
- * use :file_paths in the OSW to search for :seed_model and :weather_file.
19
- * add .stat and .ddy files to analysis.zip if in same directory as .epw defined in :weather_file.
20
- * use :measure_paths in OSW to search for measures.
21
-
22
- Version 1.3.1
23
- -------------
24
- * Add method to delete a Variable: **analysis.remove_variable()**
25
- * fix bug related to multiple calls to analysis.to_hash deleting variables
26
- * Add PSO and Optim to allowed algorithms
27
-
28
- Version 1.3.0
29
- -------------
30
- * Create an OSA from an OSW: **analysis.convert_osw()**
31
- * Add output variables and objective functions: **analysis.add_output()**
32
- * Add server initialization and finalization scripts: **analysis.server_scripts.add()**
33
- * Set algorithm attributes: **analysis.algorithm.set_attribute()**
34
- * Set algorithm type: **analysis.analysis_type()**
35
- * Add additional library/data files: **analysis.libraries.add()**
36
- * create analysis.json: **File.write('analysis.json',JSON.pretty_generate(analysis.to_hash))**
37
- * create analysis.zip: **analysis.save_osa_zip('analysis.zip')**
38
-
39
- Version 1.2.0
40
- -------------
41
- * master -> main
42
- * Remove support for Ruby 2.5. Only support Ruby ~> 2.7.0
43
- * BCL ~> 0.7.0
44
- * Use GitHub actions for CI
45
-
46
- Version 1.1.0
47
- -------------
48
- * Allow for blank :seed, :weather_file and :workflow sections of OSA
49
-
50
- Version 1.0.6
51
- -------------
52
- * Always include ../lib to the file paths to search
53
-
54
- Version 1.0.5
55
- -------------
56
- * Upgrade to latest BCL (0.6.1)
57
- * Remove the need for the measure.json (which has been deprecated in BCL gem). Now parses the measure.xml.
58
- * Upgrade Faraday (1.0.1)
59
- * Remove dependency on Nokogiri.
60
-
61
- Version 1.0.4
62
- -------------
63
- * Update dependency Nokogiri
64
-
65
- Version 1.0.3
66
- -------------
67
- * Update dependencies roo and rubyzip
68
-
69
- Version 1.0.2
70
- -------------
71
- * Updates required for OpenStudio 3x
72
- * Require Ruby ~> 2.5.1
73
- * Update to Nokogiri ~> 1.8.2 (required for Ruby 2.5 on Windows)
74
-
75
- Version 1.0.1
76
- -------------
77
- * Add support for Ruby 2.5.1 (keeping support for 2.2)
78
- * Lock version of Roo to older version
79
- * Updated copyright dates and remove old LGPL license. License is not LGPL but a BSD-style license.
80
-
81
- Version 1.0.0
82
- -------------
83
- This is the first official release in quite some time. This includes many changes which unfortunately have not been
84
- cataloged. The changes from 0.4.5 include:
85
-
86
- * Requires ruby > 2.1.
87
- * Default path to ServerApi logfile to ~/os_server_api.log. This can be overridden by setting the log_path options key in the initializer.
88
- * Fix get_datapoint_status for new version of API where data_points are under analysis
89
- * Fix boolean data type in datapoints translator
90
- * Allow __skip__ variable in datapoints translator
91
- * Fix bug in batch datapoints to look for outputs_json, not outputs when importing the definition of the outputs JSON file.
92
- * Allow "None" as an argument in batch datapoints. This will allow the measure to be added without setting any of the arguments. Useful for adding Reporting Measures to the workflow.
93
- * Use more recent version of BCL gem for underscoring strings
94
- * When creating OSWs from batch datapoints, set the default run_directory to ./run
95
- * fix get_datapoint method. show_full is no longer a valid endpoint in the new server code
96
- * Change seed_model to seed_file in OSWs generated from the translator
97
- * Add more unit tests
98
- * Catch null arguments when translating from OSA/OSD to OSW
99
- * Note that pre.rc1 was yanked from Rubygems.
100
- * Remove allow_multiple_jobs and server_as_worker options. These are by defaulted to true now.
101
- * Remove uncertain strings from end of uncertainty distributions
102
- * Remove measures eval path for CSV import
103
- * Add diag analysis type to server_api run method
104
- * Remove support for Rubies < 2.0 and > 2.0.
105
- * Add json extension to formulation name upon save if none exists
106
- * Add zip extension to formulation zip upon save if none exists
107
- * In upload_datapoint, allows set the analysis_id in the file to the one passed.
108
- * Remove reading JSON from custom_csv method.
109
- * Fixed bug in workflow translator which caused errors in server models
110
- * Updated gem versions to converge across the OpenStudio Analysis Framework platforms
111
-
112
- Version 0.4.4
113
- ------------------
114
- * Increment objective function count only if they are true
115
- * Do not add an output if the variable name has already been added
116
-
117
- Version 0.4.3
118
- ------------------
119
- * Add defaults to the OpenStudio::Analysis::ServerApi .run method.
120
- * Bug fix for path to the measure if there was more than one depth of the directory.
121
- * Add measure_definition_directory_local to store the path to the original measure.
122
- * run_analysis will be deprecated in 0.5.0. Use start_analysis instead of run_analysis.
123
- * Less stringent check on column names in Excel which caused errors at times.
124
- * Do not error out when a measure argument is a String or Choice and does not contain Enumerations.
125
- * New data point status API helper to list all the data points across all the analyses if desired.
126
- * If the user sets a std dev or delta x on a uniform or discrete variable, allow it to persist. This allows certain algorithms (e.g. rgenoud) to use the data.
127
- * New class OpenStudio::Weather::Epw to handle pulling data out of weather files.
128
- * Deprecate the old ERB templates for creating the analysis.json via the Excel translator
129
-
130
- Version 0.4.2
131
- -------------
132
- * Bug fix when adding measure from path, this now sets the correct argument name.
133
- * Fix namespace conflict with OpenStudio::Logger and OpenStudio::Time
134
- * Create method for saving the Analysis Zip file (save_analysis_zip)
135
-
136
- Version 0.4.1
137
- -------------
138
- * Bug fix to address the spec/files directory being prepended to the measures
139
-
140
- Version 0.4.0
141
- -------------
142
- * Add programmatic interface. This is now used when translating the Excel file into the JSON.
143
-
144
- Version 0.3.7
145
- -------------
146
- * Worker initialization and finalization scripts
147
- * Do not allow the file to process if the Measure Display Names are not unique
148
-
149
- Version 0.3.6
150
- -------------
151
- * Allow multiple measure paths. Will search by order for the measure.
152
- * Add AWS Tag in the Settings
153
-
154
- Version 0.3.5
155
- --------------
156
- * Add delete_project method
157
- * Integration testing
158
- * Return status and filename of downlaoded files
159
- * Methods for removing models from the Excel translator
160
- * Return detailed analyses on a project
161
- * Download database
162
-
163
- Version 0.3.4
164
- -------------
165
- * BUG FIX: Measures were not being added to zip file
166
-
167
- Version 0.3.3
168
- -------------
169
- * More unit tests
170
- * Allow a UUID model name to be automatically generated if the model name is not specified
171
- * Short name added to the variables input and output section of the spreadsheet. This required adding a new column and is not backwards compatible
172
-
173
- Version 0.3.2
174
- --------------
175
- * Support both relative and absolute paths in the spreadsheet
176
- * Helper methods for submitting analyses
177
- * Add get_analysis method to Server API to get the status of an analysis
178
-
179
- Version 0.3.1
180
- --------------
181
- * Grab the first EPW file, not the first file
182
- * Download various formats via server API
183
-
184
- Version 0.3.0
185
- --------------
186
- * Remove the column for Sampling Method. That is now part of the analysis config.
187
- * All variables need static values now
188
- * Updated output tab to add more information about the outputs if available
189
- * Remove hardcoded baseline exception
190
-
191
- Version 0.2.3
192
- --------------
193
- * Support for optional variables
194
- * Display names and Machine names in the models now
195
- * More error checking
196
-
197
- Version 0.1.14
198
- --------------
199
- * Symbolize headers parsed from excel file.
200
-
201
-
202
- Version 0.1.12/13
203
- -------------
204
- * Add machine name to pivot variables
205
- * Force generation of unique UUIDs
206
- * Add data types to arguments and variables for XML based measures
207
- * Move Pivot variable type to Type (not sample method)
208
-
209
- Version 0.1.11
210
- -------------
211
- * Add cluster name and openstudio server version
212
- * Make the booleans in run_options actual booleans
213
-
214
- Version 0.1.10
215
- -------------
216
- * Add output variables to the spreadsheet as a separate tab
217
-
218
- Version 0.1.9
219
- -------------
220
- * Downcase checking of variable data types
221
-
222
- Version 0.1.9
223
- -------------
224
- * Clean up the "delete_mes" in the JSONs
225
- * Added discrete variables to the spreadsheet and bumped version
226
-
227
- Version 0.1.8
228
- -------------
229
- * Parsing of Proxy parameters
230
-
231
- Version 0.1.7
232
- -------------
233
- * Add setting section
234
- * Add problem and algorithm arguments
235
-
236
- Version 0.1.6
237
- -------------
238
- * Small fixes
239
-
240
- Version 0.1.5
241
- -------------
242
- * Now depends on json_pure for window users
243
-
244
- Version 0.1.3
245
- -------------
246
- * Removed spaced in measure type
247
-
248
- Version 0.1.1
249
- -------------
250
-
251
- ### Major Changes (may be backwards incompatible)
252
-
253
- * Change XLSX translator to read from a "Variables" spreadsheet instead of "Sensitivity"
254
-
255
- ### Resolved Issues
256
-
257
- * Added check for when weather file is a zip or an epw
258
-
259
- * Convert argument values to the right variable types
260
-
261
- * Add measure type parsing by reading the inherited class
1
+ OpenStudio(R) Analysis Gem Change Log
2
+ ==================================
3
+
4
+ Version 1.3.6
5
+ -------------
6
+ * Bump BCL and Rubocop
7
+
8
+ Version 1.3.5
9
+ -------------
10
+ * Increase Timeouts and write_timeouts to deal with latencies for network related issues
11
+
12
+ Version 1.3.4
13
+ -------------
14
+ * Update licenses
15
+ * Add download_zip, download_osm, download_osw, download_reports attributes to OSA
16
+ * Add cli_verbose, cli_debug, initialize_worker_timeout, run_workflow_timeout, upload_results_timeout attributes to OSA
17
+
18
+ Version 1.3.3
19
+ -------------
20
+ * Add arguments to .save_osa_zip() to add all files in weather and/or seed directories to zip file. defaults to false.
21
+
22
+ Version 1.3.2
23
+ -------------
24
+ * Add array of search paths to .convert_osw() to find measures in various directories.
25
+ * warn if :weather_file and :seed_model are not defined.
26
+ * use :file_paths in the OSW to search for :seed_model and :weather_file.
27
+ * add .stat and .ddy files to analysis.zip if in same directory as .epw defined in :weather_file.
28
+ * use :measure_paths in OSW to search for measures.
29
+
30
+ Version 1.3.1
31
+ -------------
32
+ * Add method to delete a Variable: **analysis.remove_variable()**
33
+ * fix bug related to multiple calls to analysis.to_hash deleting variables
34
+ * Add PSO and Optim to allowed algorithms
35
+
36
+ Version 1.3.0
37
+ -------------
38
+ * Create an OSA from an OSW: **analysis.convert_osw()**
39
+ * Add output variables and objective functions: **analysis.add_output()**
40
+ * Add server initialization and finalization scripts: **analysis.server_scripts.add()**
41
+ * Set algorithm attributes: **analysis.algorithm.set_attribute()**
42
+ * Set algorithm type: **analysis.analysis_type()**
43
+ * Add additional library/data files: **analysis.libraries.add()**
44
+ * create analysis.json: **File.write('analysis.json',JSON.pretty_generate(analysis.to_hash))**
45
+ * create analysis.zip: **analysis.save_osa_zip('analysis.zip')**
46
+
47
+ Version 1.2.0
48
+ -------------
49
+ * master -> main
50
+ * Remove support for Ruby 2.5. Only support Ruby ~> 2.7.0
51
+ * BCL ~> 0.7.0
52
+ * Use GitHub actions for CI
53
+
54
+ Version 1.1.0
55
+ -------------
56
+ * Allow for blank :seed, :weather_file and :workflow sections of OSA
57
+
58
+ Version 1.0.6
59
+ -------------
60
+ * Always include ../lib to the file paths to search
61
+
62
+ Version 1.0.5
63
+ -------------
64
+ * Upgrade to latest BCL (0.6.1)
65
+ * Remove the need for the measure.json (which has been deprecated in BCL gem). Now parses the measure.xml.
66
+ * Upgrade Faraday (1.0.1)
67
+ * Remove dependency on Nokogiri.
68
+
69
+ Version 1.0.4
70
+ -------------
71
+ * Update dependency Nokogiri
72
+
73
+ Version 1.0.3
74
+ -------------
75
+ * Update dependencies roo and rubyzip
76
+
77
+ Version 1.0.2
78
+ -------------
79
+ * Updates required for OpenStudio 3x
80
+ * Require Ruby ~> 2.5.1
81
+ * Update to Nokogiri ~> 1.8.2 (required for Ruby 2.5 on Windows)
82
+
83
+ Version 1.0.1
84
+ -------------
85
+ * Add support for Ruby 2.5.1 (keeping support for 2.2)
86
+ * Lock version of Roo to older version
87
+ * Updated copyright dates and remove old LGPL license. License is not LGPL but a BSD-style license.
88
+
89
+ Version 1.0.0
90
+ -------------
91
+ This is the first official release in quite some time. This includes many changes which unfortunately have not been
92
+ cataloged. The changes from 0.4.5 include:
93
+
94
+ * Requires ruby > 2.1.
95
+ * Default path to ServerApi logfile to ~/os_server_api.log. This can be overridden by setting the log_path options key in the initializer.
96
+ * Fix get_datapoint_status for new version of API where data_points are under analysis
97
+ * Fix boolean data type in datapoints translator
98
+ * Allow __skip__ variable in datapoints translator
99
+ * Fix bug in batch datapoints to look for outputs_json, not outputs when importing the definition of the outputs JSON file.
100
+ * Allow "None" as an argument in batch datapoints. This will allow the measure to be added without setting any of the arguments. Useful for adding Reporting Measures to the workflow.
101
+ * Use more recent version of BCL gem for underscoring strings
102
+ * When creating OSWs from batch datapoints, set the default run_directory to ./run
103
+ * fix get_datapoint method. show_full is no longer a valid endpoint in the new server code
104
+ * Change seed_model to seed_file in OSWs generated from the translator
105
+ * Add more unit tests
106
+ * Catch null arguments when translating from OSA/OSD to OSW
107
+ * Note that pre.rc1 was yanked from Rubygems.
108
+ * Remove allow_multiple_jobs and server_as_worker options. These are by defaulted to true now.
109
+ * Remove uncertain strings from end of uncertainty distributions
110
+ * Remove measures eval path for CSV import
111
+ * Add diag analysis type to server_api run method
112
+ * Remove support for Rubies < 2.0 and > 2.0.
113
+ * Add json extension to formulation name upon save if none exists
114
+ * Add zip extension to formulation zip upon save if none exists
115
+ * In upload_datapoint, allows set the analysis_id in the file to the one passed.
116
+ * Remove reading JSON from custom_csv method.
117
+ * Fixed bug in workflow translator which caused errors in server models
118
+ * Updated gem versions to converge across the OpenStudio Analysis Framework platforms
119
+
120
+ Version 0.4.4
121
+ ------------------
122
+ * Increment objective function count only if they are true
123
+ * Do not add an output if the variable name has already been added
124
+
125
+ Version 0.4.3
126
+ ------------------
127
+ * Add defaults to the OpenStudio::Analysis::ServerApi .run method.
128
+ * Bug fix for path to the measure if there was more than one depth of the directory.
129
+ * Add measure_definition_directory_local to store the path to the original measure.
130
+ * run_analysis will be deprecated in 0.5.0. Use start_analysis instead of run_analysis.
131
+ * Less stringent check on column names in Excel which caused errors at times.
132
+ * Do not error out when a measure argument is a String or Choice and does not contain Enumerations.
133
+ * New data point status API helper to list all the data points across all the analyses if desired.
134
+ * If the user sets a std dev or delta x on a uniform or discrete variable, allow it to persist. This allows certain algorithms (e.g. rgenoud) to use the data.
135
+ * New class OpenStudio::Weather::Epw to handle pulling data out of weather files.
136
+ * Deprecate the old ERB templates for creating the analysis.json via the Excel translator
137
+
138
+ Version 0.4.2
139
+ -------------
140
+ * Bug fix when adding measure from path, this now sets the correct argument name.
141
+ * Fix namespace conflict with OpenStudio::Logger and OpenStudio::Time
142
+ * Create method for saving the Analysis Zip file (save_analysis_zip)
143
+
144
+ Version 0.4.1
145
+ -------------
146
+ * Bug fix to address the spec/files directory being prepended to the measures
147
+
148
+ Version 0.4.0
149
+ -------------
150
+ * Add programmatic interface. This is now used when translating the Excel file into the JSON.
151
+
152
+ Version 0.3.7
153
+ -------------
154
+ * Worker initialization and finalization scripts
155
+ * Do not allow the file to process if the Measure Display Names are not unique
156
+
157
+ Version 0.3.6
158
+ -------------
159
+ * Allow multiple measure paths. Will search by order for the measure.
160
+ * Add AWS Tag in the Settings
161
+
162
+ Version 0.3.5
163
+ --------------
164
+ * Add delete_project method
165
+ * Integration testing
166
+ * Return status and filename of downlaoded files
167
+ * Methods for removing models from the Excel translator
168
+ * Return detailed analyses on a project
169
+ * Download database
170
+
171
+ Version 0.3.4
172
+ -------------
173
+ * BUG FIX: Measures were not being added to zip file
174
+
175
+ Version 0.3.3
176
+ -------------
177
+ * More unit tests
178
+ * Allow a UUID model name to be automatically generated if the model name is not specified
179
+ * Short name added to the variables input and output section of the spreadsheet. This required adding a new column and is not backwards compatible
180
+
181
+ Version 0.3.2
182
+ --------------
183
+ * Support both relative and absolute paths in the spreadsheet
184
+ * Helper methods for submitting analyses
185
+ * Add get_analysis method to Server API to get the status of an analysis
186
+
187
+ Version 0.3.1
188
+ --------------
189
+ * Grab the first EPW file, not the first file
190
+ * Download various formats via server API
191
+
192
+ Version 0.3.0
193
+ --------------
194
+ * Remove the column for Sampling Method. That is now part of the analysis config.
195
+ * All variables need static values now
196
+ * Updated output tab to add more information about the outputs if available
197
+ * Remove hardcoded baseline exception
198
+
199
+ Version 0.2.3
200
+ --------------
201
+ * Support for optional variables
202
+ * Display names and Machine names in the models now
203
+ * More error checking
204
+
205
+ Version 0.1.14
206
+ --------------
207
+ * Symbolize headers parsed from excel file.
208
+
209
+
210
+ Version 0.1.12/13
211
+ -------------
212
+ * Add machine name to pivot variables
213
+ * Force generation of unique UUIDs
214
+ * Add data types to arguments and variables for XML based measures
215
+ * Move Pivot variable type to Type (not sample method)
216
+
217
+ Version 0.1.11
218
+ -------------
219
+ * Add cluster name and openstudio server version
220
+ * Make the booleans in run_options actual booleans
221
+
222
+ Version 0.1.10
223
+ -------------
224
+ * Add output variables to the spreadsheet as a separate tab
225
+
226
+ Version 0.1.9
227
+ -------------
228
+ * Downcase checking of variable data types
229
+
230
+ Version 0.1.9
231
+ -------------
232
+ * Clean up the "delete_mes" in the JSONs
233
+ * Added discrete variables to the spreadsheet and bumped version
234
+
235
+ Version 0.1.8
236
+ -------------
237
+ * Parsing of Proxy parameters
238
+
239
+ Version 0.1.7
240
+ -------------
241
+ * Add setting section
242
+ * Add problem and algorithm arguments
243
+
244
+ Version 0.1.6
245
+ -------------
246
+ * Small fixes
247
+
248
+ Version 0.1.5
249
+ -------------
250
+ * Now depends on json_pure for window users
251
+
252
+ Version 0.1.3
253
+ -------------
254
+ * Removed spaced in measure type
255
+
256
+ Version 0.1.1
257
+ -------------
258
+
259
+ ### Major Changes (may be backwards incompatible)
260
+
261
+ * Change XLSX translator to read from a "Variables" spreadsheet instead of "Sensitivity"
262
+
263
+ ### Resolved Issues
264
+
265
+ * Added check for when weather file is a zip or an epw
266
+
267
+ * Convert argument values to the right variable types
268
+
269
+ * Add measure type parsing by reading the inherited class
data/Gemfile CHANGED
@@ -1,14 +1,14 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'colored', '~> 1.2'
6
- gem 'openstudio-aws', '~> 0.4.2'
7
-
8
- group :test do
9
- # Don't install coveralls on window because requires devkit for json
10
- unless Gem.win_platform?
11
- gem 'coveralls', require: false
12
- end
13
- gem 'ci_reporter_rspec'
14
- end
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'colored', '~> 1.2'
6
+ gem 'openstudio-aws', '~> 0.4.2'
7
+
8
+ group :test do
9
+ # Don't install coveralls on window because requires devkit for json
10
+ unless Gem.win_platform?
11
+ gem 'coveralls', require: false
12
+ end
13
+ gem 'ci_reporter_rspec'
14
+ end