openstudio-analysis 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +19 -0
- data/.rubocop.yml +135 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +11 -0
- data/LGPL-2.1.txt +502 -0
- data/LICENSE.txt +65 -0
- data/README.md +1 -1
- data/lib/openstudio/analysis/formulation.rb +15 -8
- data/lib/openstudio/analysis/server_api.rb +4 -6
- data/lib/openstudio/analysis/translator/excel.rb +1 -1
- data/lib/openstudio/analysis/version.rb +1 -1
- data/openstudio-analysis.gemspec +33 -0
- data/rubocop-todo.yml +246 -0
- data/spec/files/measures/NoMeasureRbFile/.gitkeep +0 -0
- data/spec/openstudio/formulation_spec.rb +36 -0
- data/spec/openstudio/hash_spec.rb +21 -0
- data/spec/spec_helper.rb +3 -0
- metadata +53 -169
- data/lib/openstudio/templates/analysis.json.erb +0 -20
- data/lib/openstudio/templates/argument.json.erb +0 -7
- data/lib/openstudio/templates/discrete_uncertain_variable.json.erb +0 -41
- data/lib/openstudio/templates/pivot_variable.json.erb +0 -32
- data/lib/openstudio/templates/uncertain_variable.json.erb +0 -45
- data/lib/openstudio/templates/workflow_item.json.erb +0 -16
- data/spec/files/analysis/example_analysis_api.json +0 -656
- data/spec/files/analysis/lhs_discrete_and_continuous_variables_api.json +0 -1230
- data/spec/files/analysis/medium_office.json +0 -1736
- data/spec/files/analysis/medium_office.zip +0 -0
- data/spec/files/analysis/name_goes_here.json +0 -1752
- data/spec/files/analysis/name_goes_here.zip +0 -0
- data/spec/files/analysis/name_goes_here_api.json +0 -1681
- data/spec/files/analysis/output_vars_api.json +0 -632
- data/spec/files/analysis/preflight_api.json +0 -1518
- data/spec/files/analysis/simple_test_api.json +0 -519
- data/spec/files/analysis/test_model_api.json +0 -493
- data/spec/files/export/analysis/0_1_09_outputvars.json +0 -678
- data/spec/files/export/analysis/0_1_09_outputvars.zip +0 -0
- data/spec/files/export/analysis/0_3_0_dynamic_uuids.json +0 -1490
- data/spec/files/export/analysis/0_3_0_dynamic_uuids.zip +0 -0
- data/spec/files/export/analysis/0_3_0_outputs.json +0 -1490
- data/spec/files/export/analysis/0_3_0_outputs.zip +0 -0
- data/spec/files/export/analysis/0_3_3_short_names.json +0 -1517
- data/spec/files/export/analysis/0_3_3_short_names.zip +0 -0
- data/spec/files/export/analysis/0_3_5_multiple_measure_paths.json +0 -1537
- data/spec/files/export/analysis/0_3_5_multiple_measure_paths.zip +0 -0
- data/spec/files/export/analysis/0_3_7_worker_init_final.json +0 -1537
- data/spec/files/export/analysis/0_3_7_worker_init_final.zip +0 -0
- data/spec/files/export/analysis/example_analysis.json +0 -727
- data/spec/files/export/analysis/example_analysis.zip +0 -0
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables.json +0 -1298
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables.zip +0 -0
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.json +0 -1298
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.zip +0 -0
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.json +0 -1298
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.zip +0 -0
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.json +0 -1298
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.zip +0 -0
- data/spec/files/export/analysis/pivot_test.json +0 -1323
- data/spec/files/export/analysis/pivot_test.zip +0 -0
- data/spec/files/export/analysis/simple_test.json +0 -551
- data/spec/files/export/analysis/simple_test.zip +0 -0
- data/spec/files/export/analysis/test_model.json +0 -524
- data/spec/files/export/analysis/test_model.zip +0 -0
- data/spec/files/export/weather/weather_out.epw +0 -32
- data/spec/files/export/weather/weather_out_appended.epw +0 -56
- data/spec/files/export/workflow/analysis.json +0 -22
- data/spec/files/measures/ActualMeasureNoJson/measure.json +0 -25
- data/spec/reports/SPEC-OpenStudio-Analysis-Formulation.xml +0 -77
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-object-instance.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.xml +0 -3
- data/spec/reports/SPEC-OpenStudio-Analysis-SupportFiles.xml +0 -15
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.xml +0 -31
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.xml +0 -24
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.xml +0 -11
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.xml +0 -40
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.xml +0 -11
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.xml +0 -34
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.xml +0 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.xml +0 -7
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.xml +0 -28
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +0 -43
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-dynamic-uuid-assignments.xml +0 -53
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-measure-existence-checks.xml +0 -7
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-objective-functions.xml +0 -55
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-3-and-short-display-names.xml +0 -54
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-5-and-measure-paths.xml +0 -53
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.0.xml +0 -60
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.xml +0 -56
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-multiple-seed-models.xml +0 -165
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-pivot-test.xml +0 -60
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.xml +0 -3
- data/spec/reports/SPEC-OpenStudio-Analysis-Workflow.xml +0 -31
- data/spec/reports/SPEC-OpenStudio-Analysis-WorkflowStep.xml +0 -23
- data/spec/reports/SPEC-OpenStudio-Weather-Epw.xml +0 -9
@@ -1,60 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::Translator::Excel version 0.4.0 pivot test" tests="1" time="1.013931" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:48-06:00">
|
3
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel version 0.4.0 pivot test should save the analysis" time="0.144726">
|
4
|
-
</testcase>
|
5
|
-
<system-out>
|
6
|
-
Saving JSON and ZIP file for Pivot Test:Pivot Test
|
7
|
-
Adding Support Files: Weather
|
8
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_no_variables.xlsx
|
9
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_outputvars.xlsx
|
10
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_setup_version_2.xlsx
|
11
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_small_list.xlsx
|
12
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_small_list_incomplete.xlsx
|
13
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_small_list_repeat_vars.xlsx
|
14
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_09_small_list_validation_errors.xlsx
|
15
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_10_proxy.xlsx
|
16
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_10_proxy_user.xlsx
|
17
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_10_template_input.xlsx
|
18
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_11_discrete_variables.xlsx
|
19
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_1_12_discrete_dynamic_columns.xlsx
|
20
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_2_0_template.xlsx
|
21
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_2_0_template_simpletest.xlsx
|
22
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_0_dynamic_uuids.xlsx
|
23
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_0_measure_existence.xlsx
|
24
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_0_outputs.xlsx
|
25
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_3_short_names.xlsx
|
26
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_5_multiple_measure_paths.xlsx
|
27
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_7_unique_measure_names.xlsx
|
28
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_3_7_worker_init_final.xlsx
|
29
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_4_0_lhs_discrete_continuous.xlsx
|
30
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_4_0_multiple_seeds.xlsx
|
31
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/0_4_0_pivot_test.xlsx
|
32
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/analysis
|
33
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/export
|
34
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/measures
|
35
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/measures_second_path
|
36
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/partial_weather.epw
|
37
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/partial_weather_2.epw
|
38
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/small_seed.osm
|
39
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/worker_init
|
40
|
-
Adding Support Files: Seed Models
|
41
|
-
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/small_seed.osm
|
42
|
-
Adding Support Files: Libraries
|
43
|
-
Adding Support Files: Worker Initialization Scripts
|
44
|
-
Adding Support Files: Worker Finalization Scripts
|
45
|
-
Adding Measures
|
46
|
-
Adding SetThermostatSchedules
|
47
|
-
</system-out>
|
48
|
-
<system-err>
|
49
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
50
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
51
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: normal_uncertain
|
52
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
53
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
54
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
55
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
56
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
57
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
58
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
59
|
-
</system-err>
|
60
|
-
</testsuite>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::Workflow" tests="6" time="0.006776" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
-
<testcase name="OpenStudio::Analysis::Workflow should create a workflow" time="0.000121">
|
4
|
-
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::Workflow should add a measure" time="0.003271">
|
6
|
-
</testcase>
|
7
|
-
<testcase name="OpenStudio::Analysis::Workflow should fix the path of the measure" time="0.000383">
|
8
|
-
</testcase>
|
9
|
-
<testcase name="OpenStudio::Analysis::Workflow should clear out a workflow" time="0.001176">
|
10
|
-
</testcase>
|
11
|
-
<testcase name="OpenStudio::Analysis::Workflow should find a workflow step" time="0.00063">
|
12
|
-
</testcase>
|
13
|
-
<testcase name="OpenStudio::Analysis::Workflow should find a workflow step and make a variable" time="0.000699">
|
14
|
-
</testcase>
|
15
|
-
<system-out>
|
16
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
17
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
18
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
19
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
20
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
21
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
22
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
23
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
24
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
25
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
26
|
-
loading config settings from /Users/nlong/.bcl/config.yml
|
27
|
-
</system-out>
|
28
|
-
<system-err>
|
29
|
-
measure.json not found in spec/files/measures/ActualMeasureNoJson, will parse measure file using BCL gem
|
30
|
-
</system-err>
|
31
|
-
</testsuite>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::WorkflowStep" tests="6" time="0.001806" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
-
<testcase name="OpenStudio::Analysis::WorkflowStep should create a workflow" time="0.00016">
|
4
|
-
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::WorkflowStep should add a measure" time="0.000195">
|
6
|
-
</testcase>
|
7
|
-
<testcase name="OpenStudio::Analysis::WorkflowStep should tag a discrete variable" time="0.000237">
|
8
|
-
</testcase>
|
9
|
-
<testcase name="OpenStudio::Analysis::WorkflowStep should tag a continuous variable" time="0.000257">
|
10
|
-
</testcase>
|
11
|
-
<testcase name="OpenStudio::Analysis::WorkflowStep should tag a normal continuous variable" time="0.000229">
|
12
|
-
</testcase>
|
13
|
-
<testcase name="OpenStudio::Analysis::WorkflowStep should tag a uniform variable" time="0.000222">
|
14
|
-
</testcase>
|
15
|
-
<system-out>
|
16
|
-
#<OpenStudio::Analysis::WorkflowStep:0x007fc144e52e70>
|
17
|
-
</system-out>
|
18
|
-
<system-err>
|
19
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
20
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: normal_uncertain
|
21
|
-
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
22
|
-
</system-err>
|
23
|
-
</testsuite>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Weather::Epw" tests="3" time="0.008176" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
-
<testcase name="OpenStudio::Weather::Epw should process the header of a weather file" time="0.00134">
|
4
|
-
</testcase>
|
5
|
-
<testcase name="OpenStudio::Weather::Epw should read and write the weather file" time="0.002387">
|
6
|
-
</testcase>
|
7
|
-
<testcase name="OpenStudio::Weather::Epw should append weather data" time="0.004089">
|
8
|
-
</testcase>
|
9
|
-
</testsuite>
|