openstudio-analysis 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openstudio/analysis/translator/excel.rb +2 -1
- data/lib/openstudio/analysis/version.rb +1 -1
- data/spec/files/analysis/medium_office.json +192 -192
- data/spec/files/analysis/medium_office.zip +0 -0
- data/spec/files/export/analysis/Kats model v2.json +461 -0
- data/spec/files/export/analysis/Kats model v2.zip +0 -0
- data/spec/files/export/analysis/discrete_dynamic_seed.json +461 -0
- data/spec/files/export/analysis/discrete_dynamic_seed.zip +0 -0
- data/spec/files/export/analysis/discrete_seed.json +736 -0
- data/spec/files/export/analysis/discrete_seed.zip +0 -0
- data/spec/files/export/analysis/output_vars.json +707 -0
- data/spec/files/export/analysis/output_vars.zip +0 -0
- data/spec/files/export/analysis/small_seed.json +665 -0
- data/spec/files/export/analysis/small_seed.zip +0 -0
- data/spec/files/template_0_2_0_simpletest.xlsx +0 -0
- data/spec/files/{~$template_0_2_0.xlsx → ~$template_0_2_0_simpletest.xlsx} +0 -0
- data/spec/openstudio/analysis/translator/excel_spec.rb +316 -289
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-localhost-instance.64.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.64.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.64.xml +7 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.22.xml +18 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.6.xml +17 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.64.xml +20 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.30.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.36.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.16.xml +36 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.13.xml +21 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.64.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.64.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.64.xml +23 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.64.xml +9 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.13.xml +13 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +32 -0
- data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.64.xml +7 -0
- metadata +60 -6
- data/spec/files/~$template_input_0.1.10.xlsx +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d469b01b41e34a2532d51c4fee63d0b8d9ed2f48
|
4
|
+
data.tar.gz: 4826616b6e98102ecbaba4643189a919d2722f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4c0ec3e4fd6f679aca4f3dc2ea5b8f573e1bbe47c42077b3281da349893f97bbbefce73b1121ceaee3ac798fad6bde2b9e1104ba729a0c93fd414258dbf0ac5
|
7
|
+
data.tar.gz: d429af8696a0284fff428f1af84894c95690395af39cbceb6bddb11ef40bf3ccdebe22d1387508aafbb94d807e0f6ef83a7f7fa9f59397e2abd54006ae124834
|
@@ -663,7 +663,8 @@ module OpenStudio
|
|
663
663
|
data['data'][measure_index]['name'] = measure_name
|
664
664
|
data['data'][measure_index]['enabled'] = row[:enabled] == "TRUE" ? true : false
|
665
665
|
data['data'][measure_index]['measure_file_name'] = row[:measure_file_name_or_var_display_name]
|
666
|
-
data['data'][measure_index]['measure_file_name_directory'] = row[:measure_file_name_directory]
|
666
|
+
data['data'][measure_index]['measure_file_name_directory'] = row[:measure_file_name_directory] ?
|
667
|
+
row[:measure_file_name_directory] : row[:measure_file_name_or_var_display_name].underscore
|
667
668
|
data['data'][measure_index]['measure_type'] = row[:measure_type_or_parameter_name_in_measure]
|
668
669
|
data['data'][measure_index]['version'] = @version_id
|
669
670
|
|