openstudio-analysis 0.4.3 → 0.4.4

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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +19 -0
  3. data/.rubocop.yml +135 -0
  4. data/.travis.yml +6 -0
  5. data/CHANGELOG.md +5 -0
  6. data/Gemfile +11 -0
  7. data/LGPL-2.1.txt +502 -0
  8. data/LICENSE.txt +65 -0
  9. data/README.md +1 -1
  10. data/lib/openstudio/analysis/formulation.rb +15 -8
  11. data/lib/openstudio/analysis/server_api.rb +4 -6
  12. data/lib/openstudio/analysis/translator/excel.rb +1 -1
  13. data/lib/openstudio/analysis/version.rb +1 -1
  14. data/openstudio-analysis.gemspec +33 -0
  15. data/rubocop-todo.yml +246 -0
  16. data/spec/files/measures/NoMeasureRbFile/.gitkeep +0 -0
  17. data/spec/openstudio/formulation_spec.rb +36 -0
  18. data/spec/openstudio/hash_spec.rb +21 -0
  19. data/spec/spec_helper.rb +3 -0
  20. metadata +53 -169
  21. data/lib/openstudio/templates/analysis.json.erb +0 -20
  22. data/lib/openstudio/templates/argument.json.erb +0 -7
  23. data/lib/openstudio/templates/discrete_uncertain_variable.json.erb +0 -41
  24. data/lib/openstudio/templates/pivot_variable.json.erb +0 -32
  25. data/lib/openstudio/templates/uncertain_variable.json.erb +0 -45
  26. data/lib/openstudio/templates/workflow_item.json.erb +0 -16
  27. data/spec/files/analysis/example_analysis_api.json +0 -656
  28. data/spec/files/analysis/lhs_discrete_and_continuous_variables_api.json +0 -1230
  29. data/spec/files/analysis/medium_office.json +0 -1736
  30. data/spec/files/analysis/medium_office.zip +0 -0
  31. data/spec/files/analysis/name_goes_here.json +0 -1752
  32. data/spec/files/analysis/name_goes_here.zip +0 -0
  33. data/spec/files/analysis/name_goes_here_api.json +0 -1681
  34. data/spec/files/analysis/output_vars_api.json +0 -632
  35. data/spec/files/analysis/preflight_api.json +0 -1518
  36. data/spec/files/analysis/simple_test_api.json +0 -519
  37. data/spec/files/analysis/test_model_api.json +0 -493
  38. data/spec/files/export/analysis/0_1_09_outputvars.json +0 -678
  39. data/spec/files/export/analysis/0_1_09_outputvars.zip +0 -0
  40. data/spec/files/export/analysis/0_3_0_dynamic_uuids.json +0 -1490
  41. data/spec/files/export/analysis/0_3_0_dynamic_uuids.zip +0 -0
  42. data/spec/files/export/analysis/0_3_0_outputs.json +0 -1490
  43. data/spec/files/export/analysis/0_3_0_outputs.zip +0 -0
  44. data/spec/files/export/analysis/0_3_3_short_names.json +0 -1517
  45. data/spec/files/export/analysis/0_3_3_short_names.zip +0 -0
  46. data/spec/files/export/analysis/0_3_5_multiple_measure_paths.json +0 -1537
  47. data/spec/files/export/analysis/0_3_5_multiple_measure_paths.zip +0 -0
  48. data/spec/files/export/analysis/0_3_7_worker_init_final.json +0 -1537
  49. data/spec/files/export/analysis/0_3_7_worker_init_final.zip +0 -0
  50. data/spec/files/export/analysis/example_analysis.json +0 -727
  51. data/spec/files/export/analysis/example_analysis.zip +0 -0
  52. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables.json +0 -1298
  53. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables.zip +0 -0
  54. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.json +0 -1298
  55. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.zip +0 -0
  56. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.json +0 -1298
  57. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.zip +0 -0
  58. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.json +0 -1298
  59. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.zip +0 -0
  60. data/spec/files/export/analysis/pivot_test.json +0 -1323
  61. data/spec/files/export/analysis/pivot_test.zip +0 -0
  62. data/spec/files/export/analysis/simple_test.json +0 -551
  63. data/spec/files/export/analysis/simple_test.zip +0 -0
  64. data/spec/files/export/analysis/test_model.json +0 -524
  65. data/spec/files/export/analysis/test_model.zip +0 -0
  66. data/spec/files/export/weather/weather_out.epw +0 -32
  67. data/spec/files/export/weather/weather_out_appended.epw +0 -56
  68. data/spec/files/export/workflow/analysis.json +0 -22
  69. data/spec/files/measures/ActualMeasureNoJson/measure.json +0 -25
  70. data/spec/reports/SPEC-OpenStudio-Analysis-Formulation.xml +0 -77
  71. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-object-instance.xml +0 -5
  72. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.xml +0 -5
  73. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.xml +0 -3
  74. data/spec/reports/SPEC-OpenStudio-Analysis-SupportFiles.xml +0 -15
  75. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.xml +0 -31
  76. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.xml +0 -24
  77. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.xml +0 -11
  78. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.xml +0 -5
  79. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.xml +0 -5
  80. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.xml +0 -40
  81. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.xml +0 -11
  82. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.xml +0 -5
  83. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.xml +0 -5
  84. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.xml +0 -34
  85. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.xml +0 -5
  86. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.xml +0 -7
  87. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.xml +0 -28
  88. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +0 -43
  89. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-dynamic-uuid-assignments.xml +0 -53
  90. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-measure-existence-checks.xml +0 -7
  91. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-objective-functions.xml +0 -55
  92. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-3-and-short-display-names.xml +0 -54
  93. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-5-and-measure-paths.xml +0 -53
  94. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.0.xml +0 -60
  95. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.xml +0 -56
  96. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-multiple-seed-models.xml +0 -165
  97. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-pivot-test.xml +0 -60
  98. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.xml +0 -3
  99. data/spec/reports/SPEC-OpenStudio-Analysis-Workflow.xml +0 -31
  100. data/spec/reports/SPEC-OpenStudio-Analysis-WorkflowStep.xml +0 -23
  101. 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,3 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="OpenStudio::Analysis::Translator::Excel" tests="0" time="0.004475" skipped="0" timestamp="2015-04-22T13:49:30-06:00">
3
- </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
- #&lt;OpenStudio::Analysis::WorkflowStep:0x007fc144e52e70&gt;
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>