openstudio-analysis 0.1.16 → 0.1.17

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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openstudio/analysis/server_api.rb +59 -62
  3. data/lib/openstudio/analysis/translator/excel.rb +186 -189
  4. data/lib/openstudio/analysis/version.rb +1 -1
  5. data/lib/openstudio/helpers/string.rb +4 -5
  6. data/spec/files/analysis/medium_office.json +192 -192
  7. data/spec/files/analysis/medium_office.zip +0 -0
  8. data/spec/files/export/analysis/Kats model v2.json +16 -16
  9. data/spec/files/export/analysis/Kats model v2.zip +0 -0
  10. data/spec/files/export/analysis/discrete_dynamic_seed.json +16 -16
  11. data/spec/files/export/analysis/discrete_dynamic_seed.zip +0 -0
  12. data/spec/files/export/analysis/discrete_seed.json +91 -91
  13. data/spec/files/export/analysis/discrete_seed.zip +0 -0
  14. data/spec/files/export/analysis/output_vars.json +83 -83
  15. data/spec/files/export/analysis/output_vars.zip +0 -0
  16. data/spec/files/export/analysis/small_seed.json +83 -83
  17. data/spec/files/export/analysis/small_seed.zip +0 -0
  18. data/spec/files/measures/IncreaseInsulationRValueForRoofs/measure.rb +372 -375
  19. data/spec/openstudio/analysis/server_api_spec.rb +6 -6
  20. data/spec/openstudio/analysis/translator/excel_spec.rb +182 -188
  21. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-localhost-instance.65.xml +9 -0
  22. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-localhost-instance.66.xml +9 -0
  23. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-localhost-instance.67.xml +9 -0
  24. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.65.xml +9 -0
  25. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.66.xml +9 -0
  26. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.67.xml +9 -0
  27. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.65.xml +7 -0
  28. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.66.xml +7 -0
  29. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.67.xml +7 -0
  30. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.23.xml +18 -0
  31. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.24.xml +18 -0
  32. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.25.xml +18 -0
  33. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.7.xml +17 -0
  34. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.8.xml +17 -0
  35. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.9.xml +17 -0
  36. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.65.xml +20 -0
  37. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.66.xml +20 -0
  38. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.67.xml +20 -0
  39. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.31.xml +9 -0
  40. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.32.xml +9 -0
  41. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.33.xml +9 -0
  42. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.37.xml +9 -0
  43. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.38.xml +9 -0
  44. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.39.xml +9 -0
  45. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.17.xml +36 -0
  46. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.18.xml +36 -0
  47. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.19.xml +36 -0
  48. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.14.xml +21 -0
  49. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.15.xml +21 -0
  50. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.16.xml +21 -0
  51. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.65.xml +9 -0
  52. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.66.xml +9 -0
  53. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.67.xml +9 -0
  54. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.65.xml +9 -0
  55. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.66.xml +9 -0
  56. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.67.xml +9 -0
  57. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.65.xml +23 -0
  58. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.66.xml +23 -0
  59. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.67.xml +23 -0
  60. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.65.xml +9 -0
  61. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.66.xml +9 -0
  62. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.67.xml +9 -0
  63. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.14.xml +13 -0
  64. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.15.xml +13 -0
  65. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.16.xml +13 -0
  66. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.0.xml +19 -0
  67. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.1.xml +19 -0
  68. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.xml +19 -0
  69. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.0.xml +32 -0
  70. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.1.xml +32 -0
  71. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.2.xml +32 -0
  72. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.65.xml +7 -0
  73. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.66.xml +7 -0
  74. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.67.xml +7 -0
  75. data/spec/spec_helper.rb +1 -3
  76. metadata +127 -19
Binary file
@@ -311,8 +311,8 @@
311
311
  "name": "alter_design_days",
312
312
  "value": false,
313
313
  "value_type": "bool",
314
- "uuid": "71f7b270-a969-0131-ee3f-14109fdf0b37",
315
- "version_uuid": "71f7b930-a969-0131-ee40-14109fdf0b37"
314
+ "uuid": "392f5190-b199-0131-90d2-14109fdf0b37",
315
+ "version_uuid": "392f56c0-b199-0131-90d3-14109fdf0b37"
316
316
  }
317
317
  ],
318
318
  "bcl_measure_directory": "./measures/AdjustThermostatSetpointsByDegrees",
@@ -320,14 +320,14 @@
320
320
  "bcl_measure_class_name_ADDME": "AdjustThermostatSetpointsByDegrees",
321
321
  "measure_definition_class_name_CHANGE_TO_ME": "AdjustThermostatSetpointsByDegrees",
322
322
  "measure_definition_class_name": "AdjustThermostatSetpointsByDegrees",
323
- "bcl_measure_uuid": "71f72a70-a969-0131-ee31-14109fdf0b37",
324
- "measure_definition_uuid_CHANGE_TO_ME": "71f733a0-a969-0131-ee32-14109fdf0b37",
325
- "bcl_measure_version_uuid": "71f73b00-a969-0131-ee33-14109fdf0b37",
326
- "measure_definition_version_uuid_CHANGE_TO_ME": "71f74100-a969-0131-ee34-14109fdf0b37",
323
+ "bcl_measure_uuid": "392ea080-b199-0131-90c4-14109fdf0b37",
324
+ "measure_definition_uuid_CHANGE_TO_ME": "392edb30-b199-0131-90c5-14109fdf0b37",
325
+ "bcl_measure_version_uuid": "392ee600-b199-0131-90c6-14109fdf0b37",
326
+ "measure_definition_version_uuid_CHANGE_TO_ME": "392eedb0-b199-0131-90c7-14109fdf0b37",
327
327
  "measure_type": "RubyMeasure",
328
328
  "name": "adjust_thermostat_setpoints_by_degrees",
329
329
  "display_name": "Adjust Thermostat Setpoints by Degrees",
330
- "uuid": "71f74930-a969-0131-ee35-14109fdf0b37",
330
+ "uuid": "392ef420-b199-0131-90c8-14109fdf0b37",
331
331
  "variables": [
332
332
  {
333
333
  "argument": {
@@ -335,8 +335,8 @@
335
335
  "machine_name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
336
336
  "name": "cooling_adjustment",
337
337
  "required": false,
338
- "uuid": "71f769c0-a969-0131-ee37-14109fdf0b37",
339
- "version_uuid": "71f76fb0-a969-0131-ee38-14109fdf0b37"
338
+ "uuid": "392f0da0-b199-0131-90ca-14109fdf0b37",
339
+ "version_uuid": "392f16b0-b199-0131-90cb-14109fdf0b37"
340
340
  },
341
341
  "display_name": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
342
342
  "machine_name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
@@ -381,9 +381,9 @@
381
381
  ],
382
382
  "type": "discrete_uncertain"
383
383
  },
384
- "uuid": "71f776d0-a969-0131-ee39-14109fdf0b37",
384
+ "uuid": "392f1dd0-b199-0131-90cc-14109fdf0b37",
385
385
  "variable_type": "RubyContinuousVariable",
386
- "version_uuid": "71f78850-a969-0131-ee3a-14109fdf0b37"
386
+ "version_uuid": "392f2420-b199-0131-90cd-14109fdf0b37"
387
387
  },
388
388
  {
389
389
  "argument": {
@@ -391,8 +391,8 @@
391
391
  "machine_name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
392
392
  "name": "heating_adjustment",
393
393
  "required": false,
394
- "uuid": "71f79810-a969-0131-ee3b-14109fdf0b37",
395
- "version_uuid": "71f79e40-a969-0131-ee3c-14109fdf0b37"
394
+ "uuid": "392f3380-b199-0131-90ce-14109fdf0b37",
395
+ "version_uuid": "392f3ae0-b199-0131-90cf-14109fdf0b37"
396
396
  },
397
397
  "display_name": "Degrees Fahrenheit to Adjust heating Setpoint By.",
398
398
  "machine_name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
@@ -437,12 +437,12 @@
437
437
  ],
438
438
  "type": "discrete_uncertain"
439
439
  },
440
- "uuid": "71f7a380-a969-0131-ee3d-14109fdf0b37",
440
+ "uuid": "392f4080-b199-0131-90d0-14109fdf0b37",
441
441
  "variable_type": "RubyContinuousVariable",
442
- "version_uuid": "71f7a930-a969-0131-ee3e-14109fdf0b37"
442
+ "version_uuid": "392f46e0-b199-0131-90d1-14109fdf0b37"
443
443
  }
444
444
  ],
445
- "version_uuid": "71f750a0-a969-0131-ee36-14109fdf0b37",
445
+ "version_uuid": "392efbb0-b199-0131-90c9-14109fdf0b37",
446
446
  "workflow_index": 0,
447
447
  "workflow_step_type": "Measure"
448
448
  }
@@ -311,8 +311,8 @@
311
311
  "name": "alter_design_days",
312
312
  "value": false,
313
313
  "value_type": "bool",
314
- "uuid": "700c56d0-a969-0131-ecc9-14109fdf0b37",
315
- "version_uuid": "700cc280-a969-0131-ecca-14109fdf0b37"
314
+ "uuid": "37f810a0-b199-0131-8f5c-14109fdf0b37",
315
+ "version_uuid": "37f817d0-b199-0131-8f5d-14109fdf0b37"
316
316
  }
317
317
  ],
318
318
  "bcl_measure_directory": "./measures/adjust_theromstat_setpoints_by_degrees",
@@ -320,14 +320,14 @@
320
320
  "bcl_measure_class_name_ADDME": "AdjustTheromstatSetpointsByDegrees",
321
321
  "measure_definition_class_name_CHANGE_TO_ME": "AdjustTheromstatSetpointsByDegrees",
322
322
  "measure_definition_class_name": "AdjustTheromstatSetpointsByDegrees",
323
- "bcl_measure_uuid": "70055690-a969-0131-ecbb-14109fdf0b37",
324
- "measure_definition_uuid_CHANGE_TO_ME": "700561b0-a969-0131-ecbc-14109fdf0b37",
325
- "bcl_measure_version_uuid": "70056be0-a969-0131-ecbd-14109fdf0b37",
326
- "measure_definition_version_uuid_CHANGE_TO_ME": "70057120-a969-0131-ecbe-14109fdf0b37",
323
+ "bcl_measure_uuid": "37f75b90-b199-0131-8f4e-14109fdf0b37",
324
+ "measure_definition_uuid_CHANGE_TO_ME": "37f79750-b199-0131-8f4f-14109fdf0b37",
325
+ "bcl_measure_version_uuid": "37f7a170-b199-0131-8f50-14109fdf0b37",
326
+ "measure_definition_version_uuid_CHANGE_TO_ME": "37f7a950-b199-0131-8f51-14109fdf0b37",
327
327
  "measure_type": "RubyMeasure",
328
328
  "name": "adjust_thermostat_setpoints_by_degrees",
329
329
  "display_name": "Adjust Thermostat Setpoints by Degrees",
330
- "uuid": "70057e40-a969-0131-ecbf-14109fdf0b37",
330
+ "uuid": "37f7ae80-b199-0131-8f52-14109fdf0b37",
331
331
  "variables": [
332
332
  {
333
333
  "argument": {
@@ -335,8 +335,8 @@
335
335
  "machine_name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
336
336
  "name": "cooling_adjustment",
337
337
  "required": false,
338
- "uuid": "7005a1a0-a969-0131-ecc1-14109fdf0b37",
339
- "version_uuid": "700682e0-a969-0131-ecc2-14109fdf0b37"
338
+ "uuid": "37f7c460-b199-0131-8f54-14109fdf0b37",
339
+ "version_uuid": "37f7c940-b199-0131-8f55-14109fdf0b37"
340
340
  },
341
341
  "display_name": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
342
342
  "machine_name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
@@ -381,9 +381,9 @@
381
381
  ],
382
382
  "type": "discrete_uncertain"
383
383
  },
384
- "uuid": "700724a0-a969-0131-ecc3-14109fdf0b37",
384
+ "uuid": "37f7ced0-b199-0131-8f56-14109fdf0b37",
385
385
  "variable_type": "RubyContinuousVariable",
386
- "version_uuid": "70085520-a969-0131-ecc4-14109fdf0b37"
386
+ "version_uuid": "37f7d3b0-b199-0131-8f57-14109fdf0b37"
387
387
  },
388
388
  {
389
389
  "argument": {
@@ -391,8 +391,8 @@
391
391
  "machine_name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
392
392
  "name": "heating_adjustment",
393
393
  "required": false,
394
- "uuid": "70096430-a969-0131-ecc5-14109fdf0b37",
395
- "version_uuid": "700984c0-a969-0131-ecc6-14109fdf0b37"
394
+ "uuid": "37f7ead0-b199-0131-8f58-14109fdf0b37",
395
+ "version_uuid": "37f7f250-b199-0131-8f59-14109fdf0b37"
396
396
  },
397
397
  "display_name": "Degrees Fahrenheit to Adjust heating Setpoint By.",
398
398
  "machine_name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
@@ -437,12 +437,12 @@
437
437
  ],
438
438
  "type": "discrete_uncertain"
439
439
  },
440
- "uuid": "700b2210-a969-0131-ecc7-14109fdf0b37",
440
+ "uuid": "37f7fab0-b199-0131-8f5a-14109fdf0b37",
441
441
  "variable_type": "RubyContinuousVariable",
442
- "version_uuid": "700c4230-a969-0131-ecc8-14109fdf0b37"
442
+ "version_uuid": "37f801e0-b199-0131-8f5b-14109fdf0b37"
443
443
  }
444
444
  ],
445
- "version_uuid": "70058f70-a969-0131-ecc0-14109fdf0b37",
445
+ "version_uuid": "37f7b3b0-b199-0131-8f53-14109fdf0b37",
446
446
  "workflow_index": 0,
447
447
  "workflow_step_type": "Measure"
448
448
  }