openstudio-analysis 0.4.2 → 0.4.3
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/CHANGELOG.md +13 -0
- data/README.md +6 -1
- data/lib/openstudio-analysis.rb +4 -0
- data/lib/openstudio/analysis.rb +16 -0
- data/lib/openstudio/analysis/algorithm_attributes.rb +4 -0
- data/lib/openstudio/analysis/formulation.rb +115 -49
- data/lib/openstudio/analysis/server_api.rb +151 -12
- data/lib/openstudio/analysis/support_files.rb +21 -3
- data/lib/openstudio/analysis/translator/excel.rb +84 -299
- data/lib/openstudio/analysis/version.rb +1 -1
- data/lib/openstudio/analysis/workflow.rb +79 -33
- data/lib/openstudio/analysis/workflow_step.rb +165 -39
- data/lib/openstudio/helpers/string.rb +1 -1
- data/lib/openstudio/weather/epw.rb +193 -0
- data/spec/files/0_1_09_outputvars.xlsx +0 -0
- data/spec/files/0_1_09_setup_version_2.xlsx +0 -0
- data/spec/files/0_3_0_dynamic_uuids.xlsx +0 -0
- data/spec/files/0_3_0_outputs.xlsx +0 -0
- data/spec/files/0_3_3_short_names.xlsx +0 -0
- data/spec/files/0_3_5_multiple_measure_paths.xlsx +0 -0
- data/spec/files/0_3_7_unique_measure_names.xlsx +0 -0
- data/spec/files/0_3_7_worker_init_final.xlsx +0 -0
- data/spec/files/0_4_0_multiple_seeds.xlsx +0 -0
- data/spec/files/0_4_0_pivot_test.xlsx +0 -0
- data/spec/files/analysis/examples/medium_office_workflow.json +1298 -0
- data/spec/files/analysis/medium_office.json +666 -603
- data/spec/files/analysis/medium_office.zip +0 -0
- data/spec/files/analysis/name_goes_here.json +1752 -0
- data/spec/files/{export/analysis/small_seed.zip → analysis/name_goes_here.zip} +0 -0
- data/spec/files/export/analysis/0_1_09_outputvars.json +265 -230
- data/spec/files/export/analysis/0_1_09_outputvars.zip +0 -0
- data/spec/files/export/analysis/{71bebb0a-34b7-404b-b430-0ee7dab962ff.json → 0_3_0_dynamic_uuids.json} +684 -590
- data/spec/files/export/analysis/{67e3ba4a-2660-41b6-a7c5-d4457a4275c4.zip → 0_3_0_dynamic_uuids.zip} +0 -0
- data/spec/files/export/analysis/0_3_0_outputs.json +684 -590
- data/spec/files/export/analysis/0_3_0_outputs.zip +0 -0
- data/spec/files/export/analysis/{5b5264db-a31e-4bab-931b-94101bd23b80.json → 0_3_3_short_names.json} +697 -622
- data/spec/files/export/analysis/{1d8d62bb-f058-4c38-893b-8eaa7ceea254.zip → 0_3_3_short_names.zip} +0 -0
- data/spec/files/export/analysis/{1d8d62bb-f058-4c38-893b-8eaa7ceea254.json → 0_3_5_multiple_measure_paths.json} +717 -602
- data/spec/files/export/analysis/{5b5264db-a31e-4bab-931b-94101bd23b80.zip → 0_3_5_multiple_measure_paths.zip} +0 -0
- data/spec/files/export/analysis/{67e3ba4a-2660-41b6-a7c5-d4457a4275c4.json → 0_3_7_worker_init_final.json} +708 -613
- data/spec/files/export/analysis/{71bebb0a-34b7-404b-b430-0ee7dab962ff.zip → 0_3_7_worker_init_final.zip} +0 -0
- data/spec/files/export/analysis/{0_1_11_discrete_variables.json → example_analysis.json} +279 -214
- data/spec/files/export/analysis/{0_1_11_discrete_variables.zip → example_analysis.zip} +0 -0
- data/spec/files/export/analysis/{discrete_lhs_example.json → lhs_discrete_and_continuous_variables.json} +549 -436
- data/spec/files/export/analysis/{discrete_lhs_example.zip → lhs_discrete_and_continuous_variables.zip} +0 -0
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.json +1298 -0
- 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 +1298 -0
- 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 +1298 -0
- data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.zip +0 -0
- data/spec/files/export/analysis/pivot_test.json +1323 -0
- data/spec/files/export/analysis/pivot_test.zip +0 -0
- data/spec/files/export/analysis/{0_2_0_template_simpletest.json → simple_test.json} +201 -178
- data/spec/files/export/analysis/{0_2_0_template_simpletest.zip → simple_test.zip} +0 -0
- data/spec/files/export/analysis/{0_1_12_discrete_dynamic_columns.json → test_model.json} +189 -167
- data/spec/files/export/analysis/{0_1_12_discrete_dynamic_columns.zip → test_model.zip} +0 -0
- data/spec/files/export/weather/weather_out.epw +32 -0
- data/spec/files/export/weather/weather_out_appended.epw +56 -0
- data/spec/files/export/workflow/analysis.json +0 -1
- data/spec/files/measures/reduce_space_infiltration_by_percentage/measure.rb +5 -0
- data/spec/files/measures/reduce_space_infiltration_by_percentage/measure.xml +1 -0
- data/spec/files/measures/rotate_building/measure.rb +5 -0
- data/spec/files/measures/rotate_building/measure.xml +1 -0
- data/spec/files/measures/set_window_to_wall_ratio_by_facade/measure.rb +5 -0
- data/spec/files/measures/set_window_to_wall_ratio_by_facade/measure.xml +1 -0
- data/spec/files/partial_weather.epw +32 -32
- data/spec/openstudio/excel_spec.rb +103 -69
- data/spec/openstudio/formulation_spec.rb +28 -14
- data/spec/openstudio/support_files_spec.rb +2 -2
- data/spec/openstudio/weather_spec.rb +45 -0
- data/spec/openstudio/workflow_spec.rb +2 -1
- data/spec/openstudio/workflow_step_spec.rb +24 -22
- data/spec/reports/SPEC-OpenStudio-Analysis-Formulation.xml +59 -10
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-object-instance.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.xml +1 -1
- data/spec/reports/SPEC-OpenStudio-Analysis-SupportFiles.xml +6 -6
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.xml +25 -7
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.xml +18 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.xml +5 -8
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.xml +29 -12
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.xml +5 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.xml +26 -9
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.xml +2 -2
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.xml +3 -7
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.xml +20 -9
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +35 -10
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-dynamic-uuid-assignments.xml +47 -5
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-measure-existence-checks.xml +3 -6
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-objective-functions.xml +48 -10
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-3-and-short-display-names.xml +48 -6
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-5-and-measure-paths.xml +48 -8
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.0.xml +55 -6
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.xml +51 -8
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-multiple-seed-models.xml +165 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-pivot-test.xml +60 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.xml +1 -1
- data/spec/reports/SPEC-OpenStudio-Analysis-Workflow.xml +7 -7
- data/spec/reports/SPEC-OpenStudio-Analysis-WorkflowStep.xml +8 -14
- data/spec/reports/SPEC-OpenStudio-Weather-Epw.xml +9 -0
- metadata +97 -50
- data/spec/files/export/analysis/small_seed.json +0 -593
Binary file
|
@@ -0,0 +1,32 @@
|
|
1
|
+
LOCATION,Denver Intl Ap,CO,USA,TMY3,725650,39.83,-104.65,-7.0,1650.0
|
2
|
+
DESIGN CONDITIONS,1,Climate Design Data 2009 ASHRAE Handbook,,Heating,12,-17.4,-14,-21.5,0.7,-11.7,-18.9,0.9,-6.9,14.1,1.8,12,2.4,3.3,160,Cooling,7,15.2,34.6,15.7,33.2,15.6,31.8,15.4,18.3,27.3,17.6,27,17,26.5,4.2,80,16,14,19.9,15.2,13.2,19.7,14.1,12.3,19.6,58.3,27,55.9,26.9,53.8,26.3,722,Extremes,11.9,10.4,8.8,20.7,-22.7,37.1,2.8,1.3,-24.7,38,-26.3,38.8,-27.9,39.5,-29.9,40.5
|
3
|
+
TYPICAL/EXTREME PERIODS,6,Summer - Week Nearest Max Temperature For Period,Extreme,6/22,6/28,Summer - Week Nearest Average Temperature For Period,Typical,6/ 8,6/14,Winter - Week Nearest Min Temperature For Period,Extreme,1/27,2/ 2,Winter - Week Nearest Average Temperature For Period,Typical,1/ 6,1/12,Autumn - Week Nearest Average Temperature For Period,Typical,10/13,10/19,Spring - Week Nearest Average Temperature For Period,Typical,4/26,5/ 2
|
4
|
+
GROUND TEMPERATURES,3,.5,,,,0.36,2.33,6.17,9.79,16.66,20.28,21.27,19.44,15.20,9.93,4.73,1.30,2,,,,3.08,3.56,5.74,8.18,13.45,16.83,18.51,18.13,15.72,12.07,7.97,4.74,4,,,,5.88,5.54,6.50,7.88,11.37,13.98,15.68,16.09,15.03,12.89,10.11,7.59
|
5
|
+
HOLIDAYS/DAYLIGHT SAVINGS,No,0,0,0
|
6
|
+
COMMENTS 1,Custom/User Format -- WMO#725650; NREL TMY Data Set (2008); Period of Record 1973-2005 (Generally)
|
7
|
+
COMMENTS 2, -- Ground temps produced with a standard soil diffusivity of 2.3225760E-03 {m**2/day}
|
8
|
+
DATA PERIODS,1,1,Data,Sunday, 1/ 1,12/31
|
9
|
+
1995,1,1,1,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-18.0,-19.7,85,83700,0,0,181,0,0,0,0,0,0,0,0,0.0,2,2,777.7,20306,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
10
|
+
1995,1,1,2,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-16.6,-18.6,83,83500,0,0,188,0,0,0,0,0,0,0,0,0.0,3,3,777.7,18674,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
11
|
+
1995,1,1,3,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-15.3,-17.1,85,83400,0,0,193,0,0,0,0,0,0,0,0,0.0,3,3,777.7,16614,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
12
|
+
1995,1,1,4,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-14.4,-15.6,90,83100,0,0,198,0,0,0,0,0,0,0,0,0.0,4,4,777.7,14677,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
13
|
+
1995,1,1,5,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-13.0,-14.6,86,83400,0,0,205,0,0,0,0,0,0,0,0,0.0,5,5,777.7,12892,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
14
|
+
1995,1,1,6,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-11.1,-12.5,88,83000,0,0,215,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11077,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
15
|
+
1995,1,1,7,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-9.7,-11.6,84,82900,0,0,220,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11821,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
16
|
+
1995,1,1,8,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-7.7,-10.0,82,82800,45,908,231,9,17,8,1033,692,996,164,120,1.4,7,7,777.7,8786,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
17
|
+
1995,1,1,9,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.9,-8.5,80,82900,248,1415,239,89,73,77,9674,5357,8730,1645,140,1.3,7,7,777.7,7581,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
18
|
+
1995,1,1,10,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.0,66,82700,433,1415,247,266,494,115,27534,43873,14050,2191,200,1.7,8,4,777.7,11251,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
19
|
+
1995,1,1,11,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,1.4,-7.1,50,82400,565,1415,260,357,544,139,37364,52147,16460,2737,310,1.7,8,4,777.7,9436,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
20
|
+
1995,1,1,12,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.8,-7.8,42,82300,634,1415,272,430,540,187,44304,52895,20489,3885,20,4.6,7,7,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
21
|
+
1995,1,1,13,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,4.4,-8.9,34,82300,637,1415,272,362,384,189,38569,39003,20939,4150,20,7.2,8,5,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
22
|
+
1995,1,1,14,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.3,-8.9,37,82200,572,1415,265,342,524,130,36181,50444,15697,2544,10,8.2,7,4,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
23
|
+
1995,1,1,15,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.9,-8.9,35,82200,444,1415,265,252,312,154,26257,28547,17247,3276,10,7.7,8,3,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
24
|
+
1995,1,1,16,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.2,-10.0,36,82100,263,1415,252,131,369,62,13609,26773,8600,1128,10,6.2,4,1,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
25
|
+
1995,1,1,17,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-0.6,-7.8,54,82000,56,1002,239,18,114,11,1879,5232,1566,210,20,3.6,1,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
26
|
+
1995,1,1,18,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.8,62,82100,0,0,234,0,0,0,0,0,0,0,10,6.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
27
|
+
1995,1,1,19,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-9.4,68,82100,0,0,223,0,0,0,0,0,0,0,350,5.7,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
28
|
+
1995,1,1,20,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.6,-10.6,65,82100,0,0,220,0,0,0,0,0,0,0,360,5.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
29
|
+
1995,1,1,21,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82000,0,0,218,0,0,0,0,0,0,0,350,2.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
30
|
+
1995,1,1,22,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82100,0,0,218,0,0,0,0,0,0,0,20,2.6,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
31
|
+
1995,1,1,23,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-12.8,55,82300,0,0,216,0,0,0,0,0,0,0,10,4.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
32
|
+
1995,1,1,24,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-12.8,50,81900,0,0,220,0,0,0,0,0,0,0,10,8.8,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
@@ -0,0 +1,56 @@
|
|
1
|
+
LOCATION,Denver Intl Ap,CO,USA,TMY3,725650,39.83,-104.65,-7.0,1650.0
|
2
|
+
DESIGN CONDITIONS,1,Climate Design Data 2009 ASHRAE Handbook,,Heating,12,-17.4,-14,-21.5,0.7,-11.7,-18.9,0.9,-6.9,14.1,1.8,12,2.4,3.3,160,Cooling,7,15.2,34.6,15.7,33.2,15.6,31.8,15.4,18.3,27.3,17.6,27,17,26.5,4.2,80,16,14,19.9,15.2,13.2,19.7,14.1,12.3,19.6,58.3,27,55.9,26.9,53.8,26.3,722,Extremes,11.9,10.4,8.8,20.7,-22.7,37.1,2.8,1.3,-24.7,38,-26.3,38.8,-27.9,39.5,-29.9,40.5
|
3
|
+
TYPICAL/EXTREME PERIODS,6,Summer - Week Nearest Max Temperature For Period,Extreme,6/22,6/28,Summer - Week Nearest Average Temperature For Period,Typical,6/ 8,6/14,Winter - Week Nearest Min Temperature For Period,Extreme,1/27,2/ 2,Winter - Week Nearest Average Temperature For Period,Typical,1/ 6,1/12,Autumn - Week Nearest Average Temperature For Period,Typical,10/13,10/19,Spring - Week Nearest Average Temperature For Period,Typical,4/26,5/ 2
|
4
|
+
GROUND TEMPERATURES,3,.5,,,,0.36,2.33,6.17,9.79,16.66,20.28,21.27,19.44,15.20,9.93,4.73,1.30,2,,,,3.08,3.56,5.74,8.18,13.45,16.83,18.51,18.13,15.72,12.07,7.97,4.74,4,,,,5.88,5.54,6.50,7.88,11.37,13.98,15.68,16.09,15.03,12.89,10.11,7.59
|
5
|
+
HOLIDAYS/DAYLIGHT SAVINGS,No,0,0,0
|
6
|
+
COMMENTS 1,Custom/User Format -- WMO#725650; NREL TMY Data Set (2008); Period of Record 1973-2005 (Generally)
|
7
|
+
COMMENTS 2, -- Ground temps produced with a standard soil diffusivity of 2.3225760E-03 {m**2/day}
|
8
|
+
DATA PERIODS,1,1,Data,Sunday, 1/ 1,12/31
|
9
|
+
1995,1,1,1,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-18.0,-19.7,85,83700,0,0,181,0,0,0,0,0,0,0,0,0.0,2,2,777.7,20306,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
10
|
+
1995,1,1,2,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-16.6,-18.6,83,83500,0,0,188,0,0,0,0,0,0,0,0,0.0,3,3,777.7,18674,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
11
|
+
1995,1,1,3,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-15.3,-17.1,85,83400,0,0,193,0,0,0,0,0,0,0,0,0.0,3,3,777.7,16614,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
12
|
+
1995,1,1,4,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-14.4,-15.6,90,83100,0,0,198,0,0,0,0,0,0,0,0,0.0,4,4,777.7,14677,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
13
|
+
1995,1,1,5,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-13.0,-14.6,86,83400,0,0,205,0,0,0,0,0,0,0,0,0.0,5,5,777.7,12892,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
14
|
+
1995,1,1,6,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-11.1,-12.5,88,83000,0,0,215,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11077,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
15
|
+
1995,1,1,7,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-9.7,-11.6,84,82900,0,0,220,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11821,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
16
|
+
1995,1,1,8,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-7.7,-10.0,82,82800,45,908,231,9,17,8,1033,692,996,164,120,1.4,7,7,777.7,8786,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
17
|
+
1995,1,1,9,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.9,-8.5,80,82900,248,1415,239,89,73,77,9674,5357,8730,1645,140,1.3,7,7,777.7,7581,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
18
|
+
1995,1,1,10,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.0,66,82700,433,1415,247,266,494,115,27534,43873,14050,2191,200,1.7,8,4,777.7,11251,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
19
|
+
1995,1,1,11,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,1.4,-7.1,50,82400,565,1415,260,357,544,139,37364,52147,16460,2737,310,1.7,8,4,777.7,9436,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
20
|
+
1995,1,1,12,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.8,-7.8,42,82300,634,1415,272,430,540,187,44304,52895,20489,3885,20,4.6,7,7,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
21
|
+
1995,1,1,13,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,4.4,-8.9,34,82300,637,1415,272,362,384,189,38569,39003,20939,4150,20,7.2,8,5,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
22
|
+
1995,1,1,14,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.3,-8.9,37,82200,572,1415,265,342,524,130,36181,50444,15697,2544,10,8.2,7,4,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
23
|
+
1995,1,1,15,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.9,-8.9,35,82200,444,1415,265,252,312,154,26257,28547,17247,3276,10,7.7,8,3,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
24
|
+
1995,1,1,16,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.2,-10.0,36,82100,263,1415,252,131,369,62,13609,26773,8600,1128,10,6.2,4,1,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
25
|
+
1995,1,1,17,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-0.6,-7.8,54,82000,56,1002,239,18,114,11,1879,5232,1566,210,20,3.6,1,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
26
|
+
1995,1,1,18,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.8,62,82100,0,0,234,0,0,0,0,0,0,0,10,6.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
27
|
+
1995,1,1,19,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-9.4,68,82100,0,0,223,0,0,0,0,0,0,0,350,5.7,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
28
|
+
1995,1,1,20,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.6,-10.6,65,82100,0,0,220,0,0,0,0,0,0,0,360,5.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
29
|
+
1995,1,1,21,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82000,0,0,218,0,0,0,0,0,0,0,350,2.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
30
|
+
1995,1,1,22,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82100,0,0,218,0,0,0,0,0,0,0,20,2.6,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
31
|
+
1995,1,1,23,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-12.8,55,82300,0,0,216,0,0,0,0,0,0,0,10,4.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
32
|
+
1995,1,1,24,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-12.8,50,81900,0,0,220,0,0,0,0,0,0,0,10,8.8,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
33
|
+
1995,1,1,1,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-18.0,-19.7,85,83700,0,0,181,0,0,0,0,0,0,0,0,0.0,2,2,777.7,20306,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
34
|
+
1995,1,1,2,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-16.6,-18.6,83,83500,0,0,188,0,0,0,0,0,0,0,0,0.0,3,3,777.7,18674,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
35
|
+
1995,1,1,3,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-15.3,-17.1,85,83400,0,0,193,0,0,0,0,0,0,0,0,0.0,3,3,777.7,16614,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
36
|
+
1995,1,1,4,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-14.4,-15.6,90,83100,0,0,198,0,0,0,0,0,0,0,0,0.0,4,4,777.7,14677,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
37
|
+
1995,1,1,5,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-13.0,-14.6,86,83400,0,0,205,0,0,0,0,0,0,0,0,0.0,5,5,777.7,12892,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
38
|
+
1995,1,1,6,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-11.1,-12.5,88,83000,0,0,215,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11077,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
39
|
+
1995,1,1,7,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-9.7,-11.6,84,82900,0,0,220,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11821,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
40
|
+
1995,1,1,8,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-7.7,-10.0,82,82800,45,908,231,9,17,8,1033,692,996,164,120,1.4,7,7,777.7,8786,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
41
|
+
1995,1,1,9,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.9,-8.5,80,82900,248,1415,239,89,73,77,9674,5357,8730,1645,140,1.3,7,7,777.7,7581,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
42
|
+
1995,1,1,10,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.0,66,82700,433,1415,247,266,494,115,27534,43873,14050,2191,200,1.7,8,4,777.7,11251,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
43
|
+
1995,1,1,11,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,1.4,-7.1,50,82400,565,1415,260,357,544,139,37364,52147,16460,2737,310,1.7,8,4,777.7,9436,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
44
|
+
1995,1,1,12,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.8,-7.8,42,82300,634,1415,272,430,540,187,44304,52895,20489,3885,20,4.6,7,7,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
45
|
+
1995,1,1,13,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,4.4,-8.9,34,82300,637,1415,272,362,384,189,38569,39003,20939,4150,20,7.2,8,5,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
46
|
+
1995,1,1,14,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.3,-8.9,37,82200,572,1415,265,342,524,130,36181,50444,15697,2544,10,8.2,7,4,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
47
|
+
1995,1,1,15,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.9,-8.9,35,82200,444,1415,265,252,312,154,26257,28547,17247,3276,10,7.7,8,3,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
48
|
+
1995,1,1,16,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.2,-10.0,36,82100,263,1415,252,131,369,62,13609,26773,8600,1128,10,6.2,4,1,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
49
|
+
1995,1,1,17,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-0.6,-7.8,54,82000,56,1002,239,18,114,11,1879,5232,1566,210,20,3.6,1,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
50
|
+
1995,1,1,18,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.8,62,82100,0,0,234,0,0,0,0,0,0,0,10,6.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
51
|
+
1995,1,1,19,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-9.4,68,82100,0,0,223,0,0,0,0,0,0,0,350,5.7,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
52
|
+
1995,1,1,20,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.6,-10.6,65,82100,0,0,220,0,0,0,0,0,0,0,360,5.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
53
|
+
1995,1,1,21,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82000,0,0,218,0,0,0,0,0,0,0,350,2.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
54
|
+
1995,1,1,22,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82100,0,0,218,0,0,0,0,0,0,0,20,2.6,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
55
|
+
1995,1,1,23,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-12.8,55,82300,0,0,216,0,0,0,0,0,0,0,10,4.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
56
|
+
1995,1,1,24,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-12.8,50,81900,0,0,220,0,0,0,0,0,0,0,10,8.8,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
@@ -0,0 +1 @@
|
|
1
|
+
<name>Not a real XML file</name>
|
@@ -0,0 +1 @@
|
|
1
|
+
<name>Not a real XML file</name>
|
@@ -0,0 +1 @@
|
|
1
|
+
<name>Not a real XML file</name>
|
@@ -1,32 +1,32 @@
|
|
1
|
-
LOCATION,Denver Intl Ap,CO,USA,TMY3,725650,39.83,-104.65,-7.0,1650.0
|
2
|
-
DESIGN CONDITIONS,1,Climate Design Data 2009 ASHRAE Handbook,,Heating,12,-17.4,-14,-21.5,0.7,-11.7,-18.9,0.9,-6.9,14.1,1.8,12,2.4,3.3,160,Cooling,7,15.2,34.6,15.7,33.2,15.6,31.8,15.4,18.3,27.3,17.6,27,17,26.5,4.2,80,16,14,19.9,15.2,13.2,19.7,14.1,12.3,19.6,58.3,27,55.9,26.9,53.8,26.3,722,Extremes,11.9,10.4,8.8,20.7,-22.7,37.1,2.8,1.3,-24.7,38,-26.3,38.8,-27.9,39.5,-29.9,40.5
|
3
|
-
TYPICAL/EXTREME PERIODS,6,Summer - Week Nearest Max Temperature For Period,Extreme,6/22,6/28,Summer - Week Nearest Average Temperature For Period,Typical,6/ 8,6/14,Winter - Week Nearest Min Temperature For Period,Extreme,1/27,2/ 2,Winter - Week Nearest Average Temperature For Period,Typical,1/ 6,1/12,Autumn - Week Nearest Average Temperature For Period,Typical,10/13,10/19,Spring - Week Nearest Average Temperature For Period,Typical,4/26,5/ 2
|
4
|
-
GROUND TEMPERATURES,3,.5,,,,0.36,2.33,6.17,9.79,16.66,20.28,21.27,19.44,15.20,9.93,4.73,1.30,2,,,,3.08,3.56,5.74,8.18,13.45,16.83,18.51,18.13,15.72,12.07,7.97,4.74,4,,,,5.88,5.54,6.50,7.88,11.37,13.98,15.68,16.09,15.03,12.89,10.11,7.59
|
5
|
-
HOLIDAYS/DAYLIGHT SAVINGS,No,0,0,0
|
6
|
-
COMMENTS 1,Custom/User Format -- WMO#725650; NREL TMY Data Set (2008); Period of Record 1973-2005 (Generally)
|
7
|
-
COMMENTS 2, -- Ground temps produced with a standard soil diffusivity of 2.3225760E-03 {m**2/day}
|
8
|
-
DATA PERIODS,1,1,Data,Sunday, 1/ 1,12/31
|
9
|
-
1995,1,1,1,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-18.0,-19.7,85,83700,0,0,181,0,0,0,0,0,0,0,0,0.0,2,2,777.7,20306,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
10
|
-
1995,1,1,2,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-16.6,-18.6,83,83500,0,0,188,0,0,0,0,0,0,0,0,0.0,3,3,777.7,18674,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
11
|
-
1995,1,1,3,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-15.3,-17.1,85,83400,0,0,193,0,0,0,0,0,0,0,0,0.0,3,3,777.7,16614,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
12
|
-
1995,1,1,4,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-14.4,-15.6,90,83100,0,0,198,0,0,0,0,0,0,0,0,0.0,4,4,777.7,14677,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
13
|
-
1995,1,1,5,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-13.0,-14.6,86,83400,0,0,205,0,0,0,0,0,0,0,0,0.0,5,5,777.7,12892,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
14
|
-
1995,1,1,6,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-11.1,-12.5,88,83000,0,0,215,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11077,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
15
|
-
1995,1,1,7,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-9.7,-11.6,84,82900,0,0,220,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11821,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
16
|
-
1995,1,1,8,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-7.7,-10.0,82,82800,45,908,231,9,17,8,1033,692,996,164,120,1.4,7,7,777.7,8786,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
17
|
-
1995,1,1,9,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.9,-8.5,80,82900,248,1415,239,89,73,77,9674,5357,8730,1645,140,1.3,7,7,777.7,7581,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
18
|
-
1995,1,1,10,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.0,66,82700,433,1415,247,266,494,115,27534,43873,14050,2191,200,1.7,8,4,777.7,11251,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
19
|
-
1995,1,1,11,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,1.4,-7.1,50,82400,565,1415,260,357,544,139,37364,52147,16460,2737,310,1.7,8,4,777.7,9436,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
20
|
-
1995,1,1,12,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.8,-7.8,42,82300,634,1415,272,430,540,187,44304,52895,20489,3885,20,4.6,7,7,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
21
|
-
1995,1,1,13,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,4.4,-8.9,34,82300,637,1415,272,362,384,189,38569,39003,20939,4150,20,7.2,8,5,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
22
|
-
1995,1,1,14,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.3,-8.9,37,82200,572,1415,265,342,524,130,36181,50444,15697,2544,10,8.2,7,4,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
23
|
-
1995,1,1,15,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.9,-8.9,35,82200,444,1415,265,252,312,154,26257,28547,17247,3276,10,7.7,8,3,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
24
|
-
1995,1,1,16,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.2,-10.0,36,82100,263,1415,252,131,369,62,13609,26773,8600,1128,10,6.2,4,1,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
25
|
-
1995,1,1,17,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-0.6,-7.8,54,82000,56,1002,239,18,114,11,1879,5232,1566,210,20,3.6,1,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
26
|
-
1995,1,1,18,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.8,62,82100,0,0,234,0,0,0,0,0,0,0,10,6.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
27
|
-
1995,1,1,19,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-9.4,68,82100,0,0,223,0,0,0,0,0,0,0,350,5.7,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
28
|
-
1995,1,1,20,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.6,-10.6,65,82100,0,0,220,0,0,0,0,0,0,0,360,5.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
29
|
-
1995,1,1,21,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82000,0,0,218,0,0,0,0,0,0,0,350,2.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
30
|
-
1995,1,1,22,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82100,0,0,218,0,0,0,0,0,0,0,20,2.6,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
31
|
-
1995,1,1,23,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-12.8,55,82300,0,0,216,0,0,0,0,0,0,0,10,4.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
32
|
-
1995,1,1,24,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-12.8,50,81900,0,0,220,0,0,0,0,0,0,0,10,8.8,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
1
|
+
LOCATION,Denver Intl Ap,CO,USA,TMY3,725650,39.83,-104.65,-7.0,1650.0
|
2
|
+
DESIGN CONDITIONS,1,Climate Design Data 2009 ASHRAE Handbook,,Heating,12,-17.4,-14,-21.5,0.7,-11.7,-18.9,0.9,-6.9,14.1,1.8,12,2.4,3.3,160,Cooling,7,15.2,34.6,15.7,33.2,15.6,31.8,15.4,18.3,27.3,17.6,27,17,26.5,4.2,80,16,14,19.9,15.2,13.2,19.7,14.1,12.3,19.6,58.3,27,55.9,26.9,53.8,26.3,722,Extremes,11.9,10.4,8.8,20.7,-22.7,37.1,2.8,1.3,-24.7,38,-26.3,38.8,-27.9,39.5,-29.9,40.5
|
3
|
+
TYPICAL/EXTREME PERIODS,6,Summer - Week Nearest Max Temperature For Period,Extreme,6/22,6/28,Summer - Week Nearest Average Temperature For Period,Typical,6/ 8,6/14,Winter - Week Nearest Min Temperature For Period,Extreme,1/27,2/ 2,Winter - Week Nearest Average Temperature For Period,Typical,1/ 6,1/12,Autumn - Week Nearest Average Temperature For Period,Typical,10/13,10/19,Spring - Week Nearest Average Temperature For Period,Typical,4/26,5/ 2
|
4
|
+
GROUND TEMPERATURES,3,.5,,,,0.36,2.33,6.17,9.79,16.66,20.28,21.27,19.44,15.20,9.93,4.73,1.30,2,,,,3.08,3.56,5.74,8.18,13.45,16.83,18.51,18.13,15.72,12.07,7.97,4.74,4,,,,5.88,5.54,6.50,7.88,11.37,13.98,15.68,16.09,15.03,12.89,10.11,7.59
|
5
|
+
HOLIDAYS/DAYLIGHT SAVINGS,No,0,0,0
|
6
|
+
COMMENTS 1,Custom/User Format -- WMO#725650; NREL TMY Data Set (2008); Period of Record 1973-2005 (Generally)
|
7
|
+
COMMENTS 2, -- Ground temps produced with a standard soil diffusivity of 2.3225760E-03 {m**2/day}
|
8
|
+
DATA PERIODS,1,1,Data,Sunday, 1/ 1,12/31
|
9
|
+
1995,1,1,1,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-18.0,-19.7,85,83700,0,0,181,0,0,0,0,0,0,0,0,0.0,2,2,777.7,20306,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
10
|
+
1995,1,1,2,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-16.6,-18.6,83,83500,0,0,188,0,0,0,0,0,0,0,0,0.0,3,3,777.7,18674,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
11
|
+
1995,1,1,3,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-15.3,-17.1,85,83400,0,0,193,0,0,0,0,0,0,0,0,0.0,3,3,777.7,16614,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
12
|
+
1995,1,1,4,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-14.4,-15.6,90,83100,0,0,198,0,0,0,0,0,0,0,0,0.0,4,4,777.7,14677,9,999999999,30,0.0440,0,88,0.220,999.0,99.0
|
13
|
+
1995,1,1,5,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-13.0,-14.6,86,83400,0,0,205,0,0,0,0,0,0,0,0,0.0,5,5,777.7,12892,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
14
|
+
1995,1,1,6,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-11.1,-12.5,88,83000,0,0,215,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11077,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
15
|
+
1995,1,1,7,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-9.7,-11.6,84,82900,0,0,220,0,0,0,0,0,0,0,0,0.0,6,6,777.7,11821,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
16
|
+
1995,1,1,8,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-7.7,-10.0,82,82800,45,908,231,9,17,8,1033,692,996,164,120,1.4,7,7,777.7,8786,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
17
|
+
1995,1,1,9,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.9,-8.5,80,82900,248,1415,239,89,73,77,9674,5357,8730,1645,140,1.3,7,7,777.7,7581,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
18
|
+
1995,1,1,10,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.0,66,82700,433,1415,247,266,494,115,27534,43873,14050,2191,200,1.7,8,4,777.7,11251,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
19
|
+
1995,1,1,11,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,1.4,-7.1,50,82400,565,1415,260,357,544,139,37364,52147,16460,2737,310,1.7,8,4,777.7,9436,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
20
|
+
1995,1,1,12,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.8,-7.8,42,82300,634,1415,272,430,540,187,44304,52895,20489,3885,20,4.6,7,7,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
21
|
+
1995,1,1,13,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,4.4,-8.9,34,82300,637,1415,272,362,384,189,38569,39003,20939,4150,20,7.2,8,5,777.7,6706,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
22
|
+
1995,1,1,14,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.3,-8.9,37,82200,572,1415,265,342,524,130,36181,50444,15697,2544,10,8.2,7,4,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
23
|
+
1995,1,1,15,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,3.9,-8.9,35,82200,444,1415,265,252,312,154,26257,28547,17247,3276,10,7.7,8,3,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
24
|
+
1995,1,1,16,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,2.2,-10.0,36,82100,263,1415,252,131,369,62,13609,26773,8600,1128,10,6.2,4,1,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
25
|
+
1995,1,1,17,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-0.6,-7.8,54,82000,56,1002,239,18,114,11,1879,5232,1566,210,20,3.6,1,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
26
|
+
1995,1,1,18,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-2.2,-7.8,62,82100,0,0,234,0,0,0,0,0,0,0,10,6.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
27
|
+
1995,1,1,19,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-9.4,68,82100,0,0,223,0,0,0,0,0,0,0,350,5.7,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
28
|
+
1995,1,1,20,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.6,-10.6,65,82100,0,0,220,0,0,0,0,0,0,0,360,5.2,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
29
|
+
1995,1,1,21,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82000,0,0,218,0,0,0,0,0,0,0,350,2.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
30
|
+
1995,1,1,22,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-11.1,64,82100,0,0,218,0,0,0,0,0,0,0,20,2.6,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
31
|
+
1995,1,1,23,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-6.1,-12.8,55,82300,0,0,216,0,0,0,0,0,0,0,10,4.1,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
32
|
+
1995,1,1,24,0,?9?9?9?9E0?9?9?9?9?9?9?9?9?9?9?9*9?9?9?9*9*9?9*9*9,-5.0,-12.8,50,81900,0,0,220,0,0,0,0,0,0,0,10,8.8,0,0,777.7,77777,9,999999999,20,0.0440,0,88,0.220,999.0,99.0
|
@@ -17,7 +17,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'should have excel data' do
|
20
|
-
puts @excel
|
21
20
|
expect(@excel).not_to be_nil
|
22
21
|
end
|
23
22
|
|
@@ -82,7 +81,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
82
81
|
|
83
82
|
it 'should have a weather file' do
|
84
83
|
expect(@excel.weather_files.first).not_to be_nil
|
85
|
-
puts @excel.weather_files.first
|
86
84
|
expect(@excel.weather_files.first.include?('partial_weather')).to eq(true)
|
87
85
|
end
|
88
86
|
|
@@ -100,10 +98,10 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
100
98
|
|
101
99
|
it 'should write a json' do
|
102
100
|
@excel.save_analysis
|
103
|
-
expect(File).to exist('spec/files/export/analysis/
|
104
|
-
expect(File).to exist('spec/files/export/analysis/
|
101
|
+
expect(File).to exist('spec/files/export/analysis/example_analysis.json')
|
102
|
+
expect(File).to exist('spec/files/export/analysis/example_analysis.zip')
|
105
103
|
|
106
|
-
expect(JSON.parse(File.read('spec/files/export/analysis/
|
104
|
+
expect(JSON.parse(File.read('spec/files/export/analysis/example_analysis.json'))).not_to be_nil
|
107
105
|
end
|
108
106
|
end
|
109
107
|
|
@@ -122,21 +120,23 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
122
120
|
end
|
123
121
|
|
124
122
|
it 'should have algorithm setup' do
|
125
|
-
|
126
|
-
|
127
|
-
expect(
|
128
|
-
expect(
|
129
|
-
expect(
|
130
|
-
expect(
|
123
|
+
h = @excel.analysis
|
124
|
+
|
125
|
+
expect(h.algorithm['number_of_samples']).to eq(100)
|
126
|
+
expect(h.algorithm['number_of_generations']).to eq(20)
|
127
|
+
expect(h.algorithm['sample_method']).to eq('all_variables')
|
128
|
+
expect(h.algorithm['number_of_generations']).to be_a Integer
|
129
|
+
expect(h.algorithm['tolerance']).to eq(0.115)
|
130
|
+
expect(h.algorithm['tolerance']).to be_a Float
|
131
131
|
end
|
132
132
|
|
133
133
|
it 'should create a valid hash' do
|
134
|
-
h = @excel.
|
134
|
+
h = @excel.analysis
|
135
135
|
|
136
|
-
expect(h
|
137
|
-
expect(h
|
138
|
-
expect(h
|
139
|
-
expect(h
|
136
|
+
expect(h.analysis_type).to eq('lhs')
|
137
|
+
expect(h.algorithm).to be_a OpenStudio::Analysis::AlgorithmAttributes
|
138
|
+
expect(h.algorithm['number_of_samples']).to eq(100)
|
139
|
+
expect(h.algorithm['sample_method']).to eq('all_variables')
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
@@ -177,7 +177,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
177
177
|
measure['variables'].each do |var|
|
178
178
|
# TODO: Add some tests!
|
179
179
|
if var['name'] == 'alter_design_days'
|
180
|
-
puts var.inspect
|
181
180
|
expect(var['type']).to eq 'bool'
|
182
181
|
expect(var['distribution']['discrete_values']).to match_array [true, false]
|
183
182
|
expect(var['distribution']['discrete_weights']).to match_array [0.8, 0.2]
|
@@ -188,8 +187,8 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
188
187
|
|
189
188
|
it 'should save the file' do
|
190
189
|
@excel.save_analysis
|
191
|
-
expect(File.exist?('spec/files/export/analysis/
|
192
|
-
expect(File.exist?('spec/files/export/analysis/
|
190
|
+
expect(File.exist?('spec/files/export/analysis/example_analysis.json')).to eq true
|
191
|
+
expect(File.exist?('spec/files/export/analysis/example_analysis.zip')).to eq true
|
193
192
|
end
|
194
193
|
end
|
195
194
|
|
@@ -209,8 +208,8 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
209
208
|
|
210
209
|
it 'should save the file' do
|
211
210
|
@excel.save_analysis
|
212
|
-
expect(File.exist?('spec/files/export/analysis/
|
213
|
-
expect(File.exist?('spec/files/export/analysis/
|
211
|
+
expect(File.exist?('spec/files/export/analysis/test_model.json')).to eq true
|
212
|
+
expect(File.exist?('spec/files/export/analysis/test_model.zip')).to eq true
|
214
213
|
end
|
215
214
|
end
|
216
215
|
|
@@ -227,7 +226,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
227
226
|
|
228
227
|
it 'should have a weather file' do
|
229
228
|
expect(@excel.weather_files.first).not_to be_nil
|
230
|
-
puts @excel.weather_files.first
|
231
229
|
expect(@excel.weather_files.first.include?('partial_weather')).to eq(true)
|
232
230
|
end
|
233
231
|
|
@@ -258,12 +256,12 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
258
256
|
end
|
259
257
|
|
260
258
|
it 'should create a valid hash' do
|
261
|
-
h = @excel.
|
259
|
+
h = @excel.analysis
|
262
260
|
|
263
|
-
expect(h
|
264
|
-
expect(h
|
265
|
-
expect(h
|
266
|
-
expect(h
|
261
|
+
expect(h.analysis_type).to eq('nsga')
|
262
|
+
expect(h.algorithm).to be_a OpenStudio::Analysis::AlgorithmAttributes
|
263
|
+
expect(h.algorithm['number_of_samples']).to eq(100)
|
264
|
+
expect(h.algorithm['sample_method']).to eq('all_variables')
|
267
265
|
end
|
268
266
|
|
269
267
|
it 'should write a json' do
|
@@ -284,11 +282,9 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
284
282
|
end
|
285
283
|
|
286
284
|
it 'should have new setting variables' do
|
287
|
-
puts @excel.settings.inspect
|
288
285
|
expect(@excel.settings['user_id']).to eq('new_user')
|
289
286
|
expect(@excel.settings['openstudio_server_version']).to eq('1.3.2')
|
290
287
|
expect(@excel.cluster_name).to eq('analysis_cluster')
|
291
|
-
puts @excel.run_setup.inspect
|
292
288
|
expect(@excel.run_setup['analysis_name']).to eq('LHS Example Project')
|
293
289
|
end
|
294
290
|
end
|
@@ -303,11 +299,9 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
303
299
|
end
|
304
300
|
|
305
301
|
it 'should have new setting variables' do
|
306
|
-
puts @excel.settings.inspect
|
307
302
|
expect(@excel.settings['user_id']).to eq('new_user')
|
308
303
|
expect(@excel.settings['openstudio_server_version']).to eq('1.3.2')
|
309
304
|
expect(@excel.cluster_name).to eq('analysis_cluster_name')
|
310
|
-
puts @excel.run_setup.inspect
|
311
305
|
expect(@excel.run_setup['analysis_name']).to eq('Name goes here')
|
312
306
|
end
|
313
307
|
|
@@ -330,10 +324,8 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
330
324
|
end
|
331
325
|
|
332
326
|
it 'should have new setting variables' do
|
333
|
-
puts @excel.settings.inspect
|
334
327
|
expect(@excel.settings['user_id']).to eq('new_user')
|
335
328
|
expect(@excel.settings['openstudio_server_version']).to eq('1.3.2')
|
336
|
-
puts @excel.run_setup.inspect
|
337
329
|
end
|
338
330
|
|
339
331
|
it 'should have the new measure directory column' do
|
@@ -343,31 +335,27 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
343
335
|
|
344
336
|
it 'should write a json' do
|
345
337
|
@excel.save_analysis
|
346
|
-
expect(File.exist?('spec/files/export/analysis/
|
347
|
-
expect(File.exist?('spec/files/export/analysis/
|
338
|
+
expect(File.exist?('spec/files/export/analysis/simple_test.json')).to eq true
|
339
|
+
expect(File.exist?('spec/files/export/analysis/simple_test.zip')).to eq true
|
348
340
|
end
|
349
341
|
end
|
350
342
|
|
351
343
|
context 'version 0.3.0 objective functions' do
|
352
344
|
before(:all) do
|
353
345
|
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_3_0_outputs.xlsx')
|
354
|
-
end
|
355
|
-
|
356
|
-
it 'should process' do
|
357
346
|
expect(@excel.process).to eq(true)
|
358
347
|
end
|
359
348
|
|
360
349
|
it 'should have new setting variables' do
|
361
|
-
puts @excel.settings.inspect
|
362
350
|
expect(@excel.settings['user_id']).to eq('new_user')
|
363
351
|
expect(@excel.settings['openstudio_server_version']).to eq('1.6.1')
|
364
|
-
puts @excel.run_setup.inspect
|
365
352
|
end
|
366
353
|
|
367
354
|
it 'should have typed outputs' do
|
368
|
-
h = @excel.
|
369
|
-
|
370
|
-
h
|
355
|
+
h = @excel.analysis
|
356
|
+
|
357
|
+
expect(h.outputs).to be_an Array
|
358
|
+
h.outputs.each do |o|
|
371
359
|
if o['name'] == 'standard_report_legacy.total_energy'
|
372
360
|
expect(o['variable_type']).to eq 'double'
|
373
361
|
expect(o['objective_function']).to eq true
|
@@ -419,11 +407,10 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
419
407
|
context 'version 0.3.0 dynamic uuid assignments' do
|
420
408
|
before(:all) do
|
421
409
|
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_3_0_dynamic_uuids.xlsx')
|
410
|
+
expect(@excel.process).to eq(true)
|
422
411
|
end
|
423
412
|
|
424
413
|
it 'should process' do
|
425
|
-
expect(@excel.process).to eq(true)
|
426
|
-
|
427
414
|
model_uuid = @excel.models.first[:name]
|
428
415
|
expect(model_uuid).to match /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
|
429
416
|
end
|
@@ -431,28 +418,29 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
431
418
|
it 'should error out with missing measure information' do
|
432
419
|
@excel.save_analysis
|
433
420
|
model_uuid = @excel.models.first[:name]
|
434
|
-
expect(File.exist?(
|
435
|
-
expect(File.exist?(
|
421
|
+
expect(File.exist?('spec/files/export/analysis/0_3_0_dynamic_uuids.json')).to eq true
|
422
|
+
expect(File.exist?('spec/files/export/analysis/0_3_0_dynamic_uuids.zip')).to eq true
|
436
423
|
end
|
437
424
|
end
|
438
425
|
|
439
426
|
context 'version 0.3.3 and short display names' do
|
440
427
|
before :all do
|
441
428
|
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_3_3_short_names.xlsx')
|
429
|
+
expect(@excel.process).to eq(true)
|
442
430
|
end
|
443
431
|
|
444
432
|
it 'should process' do
|
445
|
-
expect(@excel.process).to eq(true)
|
446
|
-
|
447
433
|
model_uuid = @excel.models.first[:name]
|
448
434
|
expect(model_uuid).to match /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
|
449
435
|
end
|
450
436
|
|
451
437
|
it 'should process and save short display names' do
|
438
|
+
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_3_3_short_names.xlsx')
|
439
|
+
expect(@excel.process).to eq(true)
|
452
440
|
@excel.save_analysis
|
453
441
|
model_uuid = @excel.models.first[:name]
|
454
|
-
expect(File.exist?(
|
455
|
-
expect(File.exist?(
|
442
|
+
expect(File.exist?('spec/files/export/analysis/0_3_3_short_names.json')).to eq true
|
443
|
+
expect(File.exist?('spec/files/export/analysis/0_3_3_short_names.zip')).to eq true
|
456
444
|
|
457
445
|
@excel.outputs['output_variables'].each do |o|
|
458
446
|
expect(o['display_name_short']).to eq 'Site EUI' if o['name'] == 'standard_report_legacy.total_energy'
|
@@ -460,7 +448,8 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
460
448
|
end
|
461
449
|
|
462
450
|
# Check the JSON
|
463
|
-
j = JSON.parse(File.read(
|
451
|
+
j = JSON.parse(File.read('spec/files/export/analysis/0_3_3_short_names.json'))
|
452
|
+
|
464
453
|
expect(j['analysis']['output_variables'].first['display_name']).to eq 'Total Site Energy Intensity'
|
465
454
|
expect(j['analysis']['output_variables'].first['display_name_short']).to eq 'Site EUI'
|
466
455
|
expect(j['analysis']['problem']['workflow'][0]['variables'][0]['argument']['display_name']).to eq 'Orientation'
|
@@ -473,9 +462,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
473
462
|
context 'version 0.3.5 and measure paths' do
|
474
463
|
before :all do
|
475
464
|
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_3_5_multiple_measure_paths.xlsx')
|
476
|
-
end
|
477
|
-
|
478
|
-
it 'should process' do
|
479
465
|
expect(@excel.process).to eq(true)
|
480
466
|
end
|
481
467
|
|
@@ -483,8 +469,8 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
483
469
|
@excel.save_analysis
|
484
470
|
model_uuid = @excel.models.first[:name]
|
485
471
|
|
486
|
-
expect(File.exist?(
|
487
|
-
expect(File.exist?(
|
472
|
+
expect(File.exist?('spec/files/export/analysis/0_3_5_multiple_measure_paths.json')).to eq true
|
473
|
+
expect(File.exist?('spec/files/export/analysis/0_3_5_multiple_measure_paths.zip')).to eq true
|
488
474
|
|
489
475
|
expect(@excel.settings['openstudio_server_version']).to eq('1.8.0')
|
490
476
|
expect(@excel.settings['spreadsheet_version']).to eq '0.3.5'
|
@@ -498,9 +484,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
498
484
|
context 'version 0.3.7 and worker init-final scripts' do
|
499
485
|
before :all do
|
500
486
|
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_3_7_worker_init_final.xlsx')
|
501
|
-
end
|
502
|
-
|
503
|
-
it 'should process' do
|
504
487
|
expect(@excel.process).to eq(true)
|
505
488
|
end
|
506
489
|
|
@@ -508,25 +491,25 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
508
491
|
@excel.save_analysis
|
509
492
|
model_uuid = @excel.models.first[:name]
|
510
493
|
|
511
|
-
expect(File.exist?(
|
512
|
-
expect(File.exist?(
|
494
|
+
expect(File.exist?('spec/files/export/analysis/0_3_7_worker_init_final.json')).to eq true
|
495
|
+
expect(File.exist?('spec/files/export/analysis/0_3_7_worker_init_final.zip')).to eq true
|
513
496
|
|
514
497
|
expect(@excel.worker_inits.size).to eq 2
|
515
498
|
expect(@excel.worker_inits[0][:name]).to eq 'initialize me'
|
516
499
|
expect(@excel.worker_inits[0][:args]).to eq "[\"first_arg\",2,{a_hash: \"input\"}]"
|
517
500
|
|
518
|
-
# test the
|
519
|
-
a = eval(@excel.worker_inits[
|
501
|
+
# test the eval'ing of the args
|
502
|
+
a = eval(@excel.analysis.worker_inits.first[:metadata][:args])
|
520
503
|
expect(a[0]).to eq 'first_arg'
|
521
504
|
expect(a[1]).to eq 2
|
522
505
|
expect(a[2]).to be_a Hash
|
523
506
|
expect(a[2][:a_hash]).to eq 'input'
|
524
507
|
|
525
|
-
expect(@excel.worker_inits[
|
526
|
-
expect(@excel.worker_inits[
|
508
|
+
expect(File.basename(@excel.analysis.worker_inits.first[:file])).to eq 'first_file.rb'
|
509
|
+
expect(File.basename(@excel.analysis.worker_inits.last[:file])).to eq 'second_file.rb'
|
527
510
|
|
528
|
-
expect(@excel.
|
529
|
-
expect(@excel.
|
511
|
+
expect(@excel.analysis.worker_finalizes.size).to eq 1
|
512
|
+
expect(File.basename(@excel.analysis.worker_finalizes.first[:file])).to eq 'first_file.rb'
|
530
513
|
end
|
531
514
|
end
|
532
515
|
|
@@ -543,6 +526,57 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
543
526
|
end
|
544
527
|
end
|
545
528
|
|
546
|
-
context 'version 0.4.0
|
529
|
+
context 'version 0.4.0 multiple seed models' do
|
530
|
+
before :all do
|
531
|
+
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_4_0_multiple_seeds.xlsx')
|
532
|
+
expect(@excel.process).to eq(true)
|
533
|
+
end
|
534
|
+
|
535
|
+
it 'should save the analysis' do
|
536
|
+
expect { @excel.analysis }.to raise_error /There are more than one seed models defined in the excel file. Call .analyses. to return the array/
|
537
|
+
model_uuid = "#{@excel.name.snake_case}_#{@excel.models.first[:name]}"
|
538
|
+
|
539
|
+
@excel.save_analysis # this will save all the analyses
|
540
|
+
|
541
|
+
@excel.models.each do |f|
|
542
|
+
model_uuid = "#{@excel.name.snake_case}_#{f[:name]}"
|
543
|
+
puts model_uuid
|
544
|
+
expect(File.exist?("spec/files/export/analysis/#{model_uuid}.json")).to eq true
|
545
|
+
expect(File.exist?("spec/files/export/analysis/#{model_uuid}.zip")).to eq true
|
546
|
+
end
|
547
|
+
|
548
|
+
expect(@excel.settings['openstudio_server_version']).to eq('1.11.0-rc2')
|
549
|
+
expect(@excel.settings['spreadsheet_version']).to eq '0.3.7'
|
550
|
+
expect(@excel.settings['server_instance_type']).to eq 'm3.xlarge'
|
551
|
+
expect(@excel.settings['worker_instance_type']).to eq 'c3.4xlarge'
|
552
|
+
expect(@excel.aws_tags).to eq(['org=5500'])
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
context 'version 0.4.0 pivot test' do
|
557
|
+
before :all do
|
558
|
+
@excel = OpenStudio::Analysis::Translator::Excel.new('spec/files/0_4_0_pivot_test.xlsx')
|
559
|
+
expect(@excel.process).to eq(true)
|
560
|
+
end
|
561
|
+
|
562
|
+
it 'should save the analysis' do
|
563
|
+
a = @excel.analysis
|
564
|
+
|
565
|
+
@excel.save_analysis # this will save all the analyses
|
566
|
+
|
567
|
+
j = JSON.parse(File.read('spec/files/export/analysis/pivot_test.json'))
|
568
|
+
|
569
|
+
expect(j['analysis']['problem']['workflow'][0]['name']).to eq 'reduce_lighting_loads_by_percentage'
|
570
|
+
expect(j['analysis']['problem']['workflow'][0]['variables'][0]['variable_type']).to eq 'pivot'
|
571
|
+
expect(j['analysis']['problem']['workflow'][0]['variables'][0]['pivot']).to eq true
|
572
|
+
expect(j['analysis']['problem']['workflow'][1]['variables'][0]['variable']).to eq true
|
573
|
+
expect(j['analysis']['problem']['workflow'][1]['variables'][0]['pivot']).to eq nil
|
574
|
+
|
575
|
+
expect(@excel.settings['openstudio_server_version']).to eq('1.11.0-rc2')
|
576
|
+
expect(@excel.settings['spreadsheet_version']).to eq '0.3.7'
|
577
|
+
expect(@excel.settings['server_instance_type']).to eq 'm3.xlarge'
|
578
|
+
expect(@excel.settings['worker_instance_type']).to eq 'c3.4xlarge'
|
579
|
+
expect(@excel.aws_tags).to eq(['org=5500'])
|
580
|
+
end
|
547
581
|
end
|
548
582
|
end
|