openstudio-analysis 1.0.0.rc19 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +20 -0
- data/.rubocop.yml +2 -133
- data/.travis.yml +2 -2
- data/CHANGELOG.md +6 -32
- data/Gemfile +9 -6
- data/README.md +15 -7
- data/Rakefile +38 -3
- data/lib/openstudio-analysis.rb +35 -0
- data/lib/openstudio/analysis.rb +35 -0
- data/lib/openstudio/analysis/algorithm_attributes.rb +36 -1
- data/lib/openstudio/analysis/formulation.rb +41 -6
- data/lib/openstudio/analysis/server_api.rb +46 -23
- data/lib/openstudio/analysis/support_files.rb +40 -0
- data/lib/openstudio/analysis/translator/datapoints.rb +39 -4
- data/lib/openstudio/analysis/translator/excel.rb +43 -8
- data/lib/openstudio/analysis/translator/workflow.rb +49 -5
- data/lib/openstudio/analysis/version.rb +36 -1
- data/lib/openstudio/analysis/workflow.rb +37 -2
- data/lib/openstudio/analysis/workflow_step.rb +35 -0
- data/lib/openstudio/helpers/hash.rb +35 -0
- data/lib/openstudio/helpers/string.rb +36 -2
- data/lib/openstudio/weather/epw.rb +31 -16
- data/openstudio-analysis.gemspec +4 -4
- data/spec/files/0_3_7_worker_init_final.xlsx +0 -0
- data/spec/files/analysis/examples/medium_office_example.json +2 -1
- data/spec/files/worker_init/second_file.sh +4 -0
- data/spec/integration/server_api_spec.rb +35 -0
- data/spec/openstudio/excel_spec.rb +36 -1
- data/spec/openstudio/formulation_spec.rb +46 -3
- data/spec/openstudio/hash_spec.rb +37 -2
- data/spec/openstudio/osw_spec.rb +37 -2
- data/spec/openstudio/server_api_spec.rb +43 -0
- data/spec/openstudio/string_spec.rb +34 -0
- data/spec/openstudio/support_files_spec.rb +39 -4
- data/spec/openstudio/weather_spec.rb +35 -0
- data/spec/openstudio/workflow_spec.rb +36 -1
- data/spec/openstudio/workflow_step_spec.rb +46 -6
- data/spec/spec_helper.rb +4 -2
- data/update_license.rb +119 -0
- metadata +29 -28
- data/rubocop-todo.yml +0 -246
- data/spec/files/worker_init/second_file.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06d3c96c3060a4b3c38b3a71ce868bdd77e81de8
|
4
|
+
data.tar.gz: ac9f3cb8d26c95d533be4f3bffe3fddc58d5f0fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e98970c92beb469d3b4e3d6198cb79bc2ce63e20c7d13c1541a5afa78cb2ee1873fb43d5776703fa43be8f9ec6f763c2c82b2a5b67575b0ba6f6f2ccc412ed
|
7
|
+
data.tar.gz: 074efcb873df6e3233dd80129260d5b0007c871732e983bf780e2b35e6ef66e4cac8969f55cb742512ba6b440b0c3c59483d98299339ac55ed515d41ddbc4200
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
test:windows:
|
2
|
+
stage: test
|
3
|
+
tags:
|
4
|
+
- windows
|
5
|
+
script:
|
6
|
+
- bundle exec rake
|
7
|
+
|
8
|
+
test:mac:
|
9
|
+
stage: test
|
10
|
+
tags:
|
11
|
+
- mac
|
12
|
+
script:
|
13
|
+
- bundle exec rake
|
14
|
+
|
15
|
+
test:ubuntu:
|
16
|
+
stage: test
|
17
|
+
tags:
|
18
|
+
- ubuntu
|
19
|
+
script:
|
20
|
+
- bundle exec rake
|
data/.rubocop.yml
CHANGED
@@ -4,136 +4,5 @@ AllCops:
|
|
4
4
|
- 'spec/files/measures_second_path/**/*'
|
5
5
|
- 'spec/files/worker_init/*'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
Enabled: true
|
10
|
-
|
11
|
-
Lint/BlockAlignment:
|
12
|
-
Enabled: true
|
13
|
-
|
14
|
-
Lint/ParenthesesAsGroupedExpression:
|
15
|
-
Enabled: true
|
16
|
-
|
17
|
-
Lint/RequireParentheses:
|
18
|
-
Enabled: true
|
19
|
-
|
20
|
-
Lint/UnreachableCode:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Lint/UselessAssignment:
|
24
|
-
Enabled: true
|
25
|
-
|
26
|
-
Lint/UnusedBlockArgument:
|
27
|
-
Description: 'Checks for unused block arguments.'
|
28
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
Lint/UnusedMethodArgument:
|
32
|
-
Description: 'Checks for unused method arguments.'
|
33
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
Lint/UselessAssignment:
|
37
|
-
Description: 'Checks for useless assignment to a local variable.'
|
38
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
39
|
-
Enabled: false
|
40
|
-
|
41
|
-
# ==================== Performance ========================
|
42
|
-
|
43
|
-
Performance/Casecmp:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
# ==================== Styles / Metrics====================
|
47
|
-
|
48
|
-
Metrics/BlockNesting:
|
49
|
-
Max: 4
|
50
|
-
|
51
|
-
Metrics/ClassLength:
|
52
|
-
Max: 500
|
53
|
-
|
54
|
-
Metrics/CyclomaticComplexity:
|
55
|
-
Max: 50
|
56
|
-
|
57
|
-
Metrics/LineLength:
|
58
|
-
Max: 120
|
59
|
-
|
60
|
-
Metrics/MethodLength:
|
61
|
-
Max: 350
|
62
|
-
|
63
|
-
Metrics/ParameterLists:
|
64
|
-
Max: 8
|
65
|
-
|
66
|
-
# ==================== Disabled on Purpose ====================
|
67
|
-
|
68
|
-
# Allow indented case statements
|
69
|
-
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
|
70
|
-
Style/CaseIndentation:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
|
74
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
75
|
-
Style/ConditionalAssignment:
|
76
|
-
Enabled: false
|
77
|
-
|
78
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
79
|
-
Style/ClassAndModuleChildren:
|
80
|
-
Enabled: false
|
81
|
-
|
82
|
-
Style/ClassVars:
|
83
|
-
Enabled: false
|
84
|
-
|
85
|
-
Style/Documentation:
|
86
|
-
Enabled: false
|
87
|
-
|
88
|
-
# Offense count: 1
|
89
|
-
Style/EachWithObject:
|
90
|
-
Enabled: false
|
91
|
-
|
92
|
-
# Configuration parameters: AllowedVariables.
|
93
|
-
Style/GlobalVars:
|
94
|
-
Enabled: false
|
95
|
-
|
96
|
-
# Configuration parameters: MinBodyLength.
|
97
|
-
Style/GuardClause:
|
98
|
-
Enabled: true
|
99
|
-
|
100
|
-
# Configuration parameters: MaxLineLength.
|
101
|
-
Style/IfUnlessModifier:
|
102
|
-
Enabled: false
|
103
|
-
|
104
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
105
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
106
|
-
Style/MultilineMethodCallBraceLayout:
|
107
|
-
Enabled: false
|
108
|
-
|
109
|
-
# Do NOT enable.
|
110
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
111
|
-
Style/Next:
|
112
|
-
Enabled: false
|
113
|
-
|
114
|
-
Style/NumericLiterals:
|
115
|
-
Description: 'Add underscores to large numeric literals to improve readability.'
|
116
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
|
117
|
-
Enabled: false
|
118
|
-
|
119
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
120
|
-
# SupportedStyles: predicate, comparison
|
121
|
-
Style/NumericPredicate:
|
122
|
-
Enabled: false
|
123
|
-
|
124
|
-
# More Changes per DLM -- pulled from https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
|
125
|
-
Style/RedundantReturn:
|
126
|
-
Description: 'Do not use return where it is not required.'
|
127
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
|
128
|
-
Enabled: false
|
129
|
-
|
130
|
-
Style/RedundantParentheses:
|
131
|
-
Enabled: false
|
132
|
-
|
133
|
-
# Do NOT enable this because it appears $? is different than $CHILD_STATUS.
|
134
|
-
Style/SpecialGlobalVars:
|
135
|
-
Enabled: false
|
136
|
-
|
137
|
-
Style/ZeroLengthPredicate:
|
138
|
-
Enabled: false
|
139
|
-
|
7
|
+
inherit_from:
|
8
|
+
- https://raw.githubusercontent.com/NREL/OpenStudio-resources/develop/styles/rubocop.yml
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,47 +1,24 @@
|
|
1
1
|
OpenStudio Analysis Gem Change Log
|
2
2
|
==================================
|
3
3
|
|
4
|
-
Version 1.0.0
|
5
|
-
|
4
|
+
Version 1.0.0
|
5
|
+
-------------
|
6
|
+
This is the first official release in quite some time. This includes many changes which unfortunately have not been
|
7
|
+
catelogued. The changes from 0.4.5 include:
|
8
|
+
|
9
|
+
* Requires ruby > 2.1.
|
6
10
|
* Default path to ServerApi logfile to ~/os_server_api.log. This can be overridden by setting the log_path options key in the initializer.
|
7
11
|
* Fix get_datapoint_status for new version of API where data_points are under analysis
|
8
|
-
|
9
|
-
Version 1.0.0.rc10
|
10
|
-
------------------
|
11
12
|
* Fix boolean data type in datapoints translator
|
12
13
|
* Allow __skip__ variable in datapoints translator
|
13
|
-
|
14
|
-
Version 1.0.0.rc9
|
15
|
-
-----------------
|
16
14
|
* Fix bug in batch datapoints to look for outputs_json, not outputs when importing the definition of the outputs JSON file.
|
17
|
-
|
18
|
-
Version 1.0.0.rc8
|
19
|
-
-----------------
|
20
15
|
* 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.
|
21
|
-
|
22
|
-
Version 1.0.0.rc7
|
23
|
-
-----------------
|
24
16
|
* Use more recent version of BCL gem for underscoring strings
|
25
|
-
|
26
|
-
Version 1.0.0.pre.rc6
|
27
|
-
---------------------
|
28
17
|
* When creating OSWs from batch datapoints, set the default run_directory to ./run
|
29
|
-
|
30
|
-
Version 1.0.0.pre.rc5
|
31
|
-
---------------------
|
32
18
|
* fix get_datapoint method. show_full is no longer a valid endpoint in the new server code
|
33
|
-
|
34
|
-
Version 1.0.0.pre.rc4
|
35
|
-
---------------------
|
36
19
|
* Change seed_model to seed_file in OSWs generated from the translator
|
37
20
|
* Add more unit tests
|
38
|
-
|
39
|
-
Version 1.0.0.pre.rc3
|
40
|
-
---------------------
|
41
21
|
* Catch null arguments when translating from OSA/OSD to OSW
|
42
|
-
|
43
|
-
Version 1.0.0.pre.rc2
|
44
|
-
--------------------------------
|
45
22
|
* Note that pre.rc1 was yanked from Rubygems.
|
46
23
|
* Remove allow_multiple_jobs and server_as_worker options. These are by defaulted to true now.
|
47
24
|
* Remove uncertain strings from end of uncertainty distributions
|
@@ -52,9 +29,6 @@ Version 1.0.0.pre.rc2
|
|
52
29
|
* Add zip extension to formulation zip upon save if none exists
|
53
30
|
* In upload_datapoint, allows set the analysis_id in the file to the one passed.
|
54
31
|
* Remove reading JSON from custom_csv method.
|
55
|
-
|
56
|
-
Version 1.0.0-pat2
|
57
|
-
------------------------------
|
58
32
|
* Fixed bug in workflow translator which caused errors in server models
|
59
33
|
* Updated gem versions to converge across the OpenStudio Analysis Framework platforms
|
60
34
|
|
data/Gemfile
CHANGED
@@ -2,14 +2,17 @@ source 'http://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
gem 'openstudio-aws', '0.4.2'
|
6
|
-
gem 'dencity'
|
7
5
|
gem 'colored', '~> 1.2'
|
6
|
+
gem 'dencity'
|
7
|
+
gem 'openstudio-aws', '0.4.2'
|
8
8
|
|
9
9
|
group :test do
|
10
|
-
|
11
|
-
|
10
|
+
# Don't install coveralls on window because requires devkit for json
|
11
|
+
unless Gem.win_platform?
|
12
|
+
gem 'coveralls', require: false
|
13
|
+
end
|
12
14
|
gem 'ci_reporter_rspec'
|
13
|
-
gem '
|
14
|
-
gem 'rubocop
|
15
|
+
gem 'rspec', '~> 3.4'
|
16
|
+
gem 'rubocop'
|
17
|
+
gem 'rubocop-checkstyle_formatter'
|
15
18
|
end
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# OpenStudio Analysis Gem
|
2
2
|
|
3
|
-
[](https://travis-ci.org/NREL/OpenStudio-analysis-gem)
|
3
|
+
[](https://travis-ci.org/NREL/OpenStudio-analysis-gem)
|
4
|
+
[](https://coveralls.io/r/NREL/OpenStudio-analysis-gem?branch=develop)
|
5
|
+
[](https://badge.fury.io/rb/openstudio-analysis)
|
4
6
|
|
5
7
|
The OpenStudio Analysis Gem is used to communicate files to the OpenStudio Distributed Analysis.
|
6
8
|
|
@@ -66,15 +68,21 @@ There are two ways to create an OpenStudio Analysis description:
|
|
66
68
|
|
67
69
|
* Server API
|
68
70
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
```
|
71
|
+
## Testing
|
73
72
|
|
73
|
+
This gem used RSpec for testing. To test simply run `bundle exec rspec` at the command line.
|
74
74
|
|
75
|
-
|
75
|
+
# Releasing
|
76
|
+
|
77
|
+
Follow the steps below when releasing a new version:
|
76
78
|
|
77
|
-
|
79
|
+
1. Update /lib/openstudio/analysis/version.rb to the next version. Make sure to follow semantic versioning.
|
80
|
+
2. Add changes to the CHANGELOG.md.
|
81
|
+
3. Run rubocop and make sure code meets coding standards.
|
82
|
+
4. Push release candidate on a branch.
|
83
|
+
5. Create a pull request to develop. Once the tests pass, merge into develop.
|
84
|
+
6. Create a pull request to master. Once tests pass, then merge into master.
|
85
|
+
7. Checkout master and run `rake release`
|
78
86
|
|
79
87
|
# Todos
|
80
88
|
|
data/Rakefile
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
# *******************************************************************************
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
|
3
|
+
# All rights reserved.
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
5
|
+
# modification, are permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# (1) Redistributions of source code must retain the above copyright notice,
|
8
|
+
# this list of conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# (2) Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
# this list of conditions and the following disclaimer in the documentation
|
12
|
+
# and/or other materials provided with the distribution.
|
13
|
+
#
|
14
|
+
# (3) Neither the name of the copyright holder nor the names of any contributors
|
15
|
+
# may be used to endorse or promote products derived from this software without
|
16
|
+
# specific prior written permission from the respective party.
|
17
|
+
#
|
18
|
+
# (4) Other than as required in clauses (1) and (2), distributions in any form
|
19
|
+
# of modifications or other derivative works may not use the "OpenStudio"
|
20
|
+
# trademark, "OS", "os", or any other confusingly similar designation without
|
21
|
+
# specific prior written permission from Alliance for Sustainable Energy, LLC.
|
22
|
+
#
|
23
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
24
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
25
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
26
|
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
|
27
|
+
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
28
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
29
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
30
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
31
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
32
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
33
|
+
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
+
# *******************************************************************************
|
35
|
+
|
1
36
|
require 'bundler'
|
2
37
|
Bundler.setup
|
3
38
|
|
@@ -10,12 +45,12 @@ require 'ci/reporter/rake/rspec'
|
|
10
45
|
require 'bundler/gem_tasks'
|
11
46
|
|
12
47
|
RSpec::Core::RakeTask.new('spec:unit') do |spec|
|
13
|
-
spec.rspec_opts =
|
48
|
+
spec.rspec_opts = ['--format', 'progress']
|
14
49
|
spec.pattern = FileList['spec/openstudio/**/*_spec.rb']
|
15
50
|
end
|
16
51
|
|
17
52
|
RSpec::Core::RakeTask.new('spec:integration') do |spec|
|
18
|
-
spec.rspec_opts =
|
53
|
+
spec.rspec_opts = ['--format', 'progress']
|
19
54
|
spec.pattern = FileList['spec/integration/**/*_spec.rb']
|
20
55
|
end
|
21
56
|
|
@@ -27,7 +62,7 @@ task default: 'spec:unit'
|
|
27
62
|
require 'rubocop/rake_task'
|
28
63
|
desc 'Run RuboCop on the lib directory'
|
29
64
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
30
|
-
task.options = ['--no-color', '--out=rubocop-results.xml']
|
65
|
+
task.options = ['--no-color', '--out=rubocop-results.xml', '--format', 'simple']
|
31
66
|
task.formatters = ['RuboCop::Formatter::CheckstyleFormatter']
|
32
67
|
task.requires = ['rubocop/formatter/checkstyle_formatter']
|
33
68
|
# don't abort rake on failure
|
data/lib/openstudio-analysis.rb
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
# *******************************************************************************
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
|
3
|
+
# All rights reserved.
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
5
|
+
# modification, are permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# (1) Redistributions of source code must retain the above copyright notice,
|
8
|
+
# this list of conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# (2) Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
# this list of conditions and the following disclaimer in the documentation
|
12
|
+
# and/or other materials provided with the distribution.
|
13
|
+
#
|
14
|
+
# (3) Neither the name of the copyright holder nor the names of any contributors
|
15
|
+
# may be used to endorse or promote products derived from this software without
|
16
|
+
# specific prior written permission from the respective party.
|
17
|
+
#
|
18
|
+
# (4) Other than as required in clauses (1) and (2), distributions in any form
|
19
|
+
# of modifications or other derivative works may not use the "OpenStudio"
|
20
|
+
# trademark, "OS", "os", or any other confusingly similar designation without
|
21
|
+
# specific prior written permission from Alliance for Sustainable Energy, LLC.
|
22
|
+
#
|
23
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
24
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
25
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
26
|
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
|
27
|
+
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
28
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
29
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
30
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
31
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
32
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
33
|
+
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
+
# *******************************************************************************
|
35
|
+
|
1
36
|
# Ruby libraries to include
|
2
37
|
require 'json'
|
3
38
|
require 'securerandom'
|
data/lib/openstudio/analysis.rb
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
# *******************************************************************************
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
|
3
|
+
# All rights reserved.
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
5
|
+
# modification, are permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# (1) Redistributions of source code must retain the above copyright notice,
|
8
|
+
# this list of conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# (2) Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
# this list of conditions and the following disclaimer in the documentation
|
12
|
+
# and/or other materials provided with the distribution.
|
13
|
+
#
|
14
|
+
# (3) Neither the name of the copyright holder nor the names of any contributors
|
15
|
+
# may be used to endorse or promote products derived from this software without
|
16
|
+
# specific prior written permission from the respective party.
|
17
|
+
#
|
18
|
+
# (4) Other than as required in clauses (1) and (2), distributions in any form
|
19
|
+
# of modifications or other derivative works may not use the "OpenStudio"
|
20
|
+
# trademark, "OS", "os", or any other confusingly similar designation without
|
21
|
+
# specific prior written permission from Alliance for Sustainable Energy, LLC.
|
22
|
+
#
|
23
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
24
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
25
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
26
|
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
|
27
|
+
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
28
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
29
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
30
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
31
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
32
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
33
|
+
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
+
# *******************************************************************************
|
35
|
+
|
1
36
|
# OpenStudio::Analysis Module instantiates versions of formulations
|
2
37
|
module OpenStudio
|
3
38
|
module Analysis
|