openstudio-analysis 0.4.5 → 1.0.0.pat1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +7 -3
- data/Gemfile +1 -0
- data/README.md +53 -47
- data/lib/openstudio/analysis/formulation.rb +1 -1
- data/lib/openstudio/analysis/server_api.rb +143 -246
- data/lib/openstudio/analysis/translator/datapoints.rb +8 -3
- data/lib/openstudio/analysis/translator/excel.rb +16 -4
- data/lib/openstudio/analysis/translator/workflow.rb +106 -0
- data/lib/openstudio/analysis/version.rb +1 -1
- data/lib/openstudio/analysis/workflow_step.rb +5 -2
- data/lib/openstudio/analysis.rb +85 -0
- data/lib/openstudio-analysis.rb +1 -0
- data/openstudio-analysis.gemspec +4 -3
- data/spec/files/workflow/analysis.osa +1334 -0
- data/spec/files/workflow/datapoint_0.osd +63 -0
- data/spec/files/workflow/datapoint_1.osd +63 -0
- data/spec/files/workflow/datapoint_2.osd +63 -0
- data/spec/files/workflow/datapoint_wrong_osa_id.osd +65 -0
- data/spec/openstudio/excel_spec.rb +0 -5
- data/spec/openstudio/osw_spec.rb +618 -0
- metadata +36 -9
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"_id":"699e4f93-8b4c-4346-b245-8a80511e5024",
|
3
|
+
"analysis_id":"b7cfff21-f518-426a-8d7d-e88425c2298b",
|
4
|
+
"created_at":"2016-05-11T16:31:05Z",
|
5
|
+
"download_information":null,
|
6
|
+
"download_status":"na",
|
7
|
+
"internal_ip_address":null,
|
8
|
+
"ip_address":null,
|
9
|
+
"name":"LHS Autogenerated 21",
|
10
|
+
"openstudio_datapoint_file_name":null,
|
11
|
+
"results":{
|
12
|
+
|
13
|
+
},
|
14
|
+
"run_end_time":null,
|
15
|
+
"run_start_time":null,
|
16
|
+
"sdp_log_file":[
|
17
|
+
|
18
|
+
],
|
19
|
+
"set_variable_values":{
|
20
|
+
"6d3a3479-42d4-4484-a7ce-45daae3169aa":0.3672873569559306,
|
21
|
+
"10ea07d7-5b88-40a5-9267-e14cc9247fb8":1,
|
22
|
+
"b8354218-68ea-40ac-813d-775b41002e59":-1,
|
23
|
+
"a3b77357-c57f-4a63-a419-408fe57e41de":0,
|
24
|
+
"ab729dec-e423-4d86-aede-eac087353251":0,
|
25
|
+
"2765cc83-cc4a-4dfd-aaa1-04f04c472867":44,
|
26
|
+
"b614f269-fef6-45ab-baf6-6e8741331a86":120,
|
27
|
+
"eb8d1aad-2087-4163-977e-0978424de46e":13,
|
28
|
+
"d1069c03-d2c4-4ade-aa9e-1b128a8af565":10,
|
29
|
+
"bb3fbef6-5e8d-45a8-a314-e64e1a7990f9":0.4,
|
30
|
+
"9dfaf70b-fb39-4598-94f5-572162e2b029":0.4
|
31
|
+
},
|
32
|
+
"status":"queued",
|
33
|
+
"status_message":"",
|
34
|
+
"updated_at":"2016-05-11T16:31:06Z",
|
35
|
+
"uuid":"699e4f93-8b4c-4346-b245-8a80511e5024",
|
36
|
+
"variable_values":null,
|
37
|
+
"set_variable_values_names":{
|
38
|
+
"add_overhangs_by_projection_factor.projection_factor":0.3672873569559306,
|
39
|
+
"adjust_thermostat_setpoints_by_degrees.cooling_adjustment":1,
|
40
|
+
"adjust_thermostat_setpoints_by_degrees.heating_adjustment":-1,
|
41
|
+
"reduce_lighting_loads_by_percentage.lighting_power_reduction_percent":0,
|
42
|
+
"rotate_building_relative_to_current_orientation.relative_building_rotation":0,
|
43
|
+
"set_chilled_water_loop_temperature.cw_temp_f":44,
|
44
|
+
"set_hot_water_loop_temperature.hw_temp_f":120,
|
45
|
+
"set_r_value_of_insulation_for_exterior_walls_to_a_specific_value.r_value":13,
|
46
|
+
"set_r_value_of_insulation_for_roofs_to_a_specific_value.r_value":10,
|
47
|
+
"window_to_wall_ratio_east.wwr":0.4,
|
48
|
+
"window_to_wall_ratio_south.wwr":0.4
|
49
|
+
},
|
50
|
+
"set_variable_values_display_names":{
|
51
|
+
"South Projection Factor":0.3672873569559306,
|
52
|
+
"Degrees Fahrenheit to Adjust Cooling Setpoint By.":1,
|
53
|
+
"Degrees Fahrenheit to Adjust heating Setpoint By.":-1,
|
54
|
+
"LPD Reduction":0,
|
55
|
+
"Rotation":0,
|
56
|
+
"Desired chilled water setpoint (F)":44,
|
57
|
+
"Desired hot water setpoint (F)":120,
|
58
|
+
"Wall R-Value":13,
|
59
|
+
"Roof R-Value":10,
|
60
|
+
"East WWR":0.4,
|
61
|
+
"South WWR":0.4
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"_id":"e4be14c2-aec0-4304-8b77-49250b7e97cd",
|
3
|
+
"analysis_id":"b7cfff21-f518-426a-8d7d-e88425c2298b",
|
4
|
+
"created_at":"2016-05-11T16:31:05Z",
|
5
|
+
"download_information":null,
|
6
|
+
"download_status":"na",
|
7
|
+
"internal_ip_address":null,
|
8
|
+
"ip_address":null,
|
9
|
+
"name":"LHS Autogenerated 18",
|
10
|
+
"openstudio_datapoint_file_name":null,
|
11
|
+
"results":{
|
12
|
+
|
13
|
+
},
|
14
|
+
"run_end_time":null,
|
15
|
+
"run_start_time":null,
|
16
|
+
"sdp_log_file":[
|
17
|
+
|
18
|
+
],
|
19
|
+
"set_variable_values":{
|
20
|
+
"6d3a3479-42d4-4484-a7ce-45daae3169aa":0.15678702925331892,
|
21
|
+
"10ea07d7-5b88-40a5-9267-e14cc9247fb8":1,
|
22
|
+
"b8354218-68ea-40ac-813d-775b41002e59":-1,
|
23
|
+
"a3b77357-c57f-4a63-a419-408fe57e41de":0,
|
24
|
+
"ab729dec-e423-4d86-aede-eac087353251":0,
|
25
|
+
"2765cc83-cc4a-4dfd-aaa1-04f04c472867":44,
|
26
|
+
"b614f269-fef6-45ab-baf6-6e8741331a86":120,
|
27
|
+
"eb8d1aad-2087-4163-977e-0978424de46e":13,
|
28
|
+
"d1069c03-d2c4-4ade-aa9e-1b128a8af565":10,
|
29
|
+
"bb3fbef6-5e8d-45a8-a314-e64e1a7990f9":0.4,
|
30
|
+
"9dfaf70b-fb39-4598-94f5-572162e2b029":0.4
|
31
|
+
},
|
32
|
+
"status":"queued",
|
33
|
+
"status_message":"",
|
34
|
+
"updated_at":"2016-05-11T16:31:06Z",
|
35
|
+
"uuid":"e4be14c2-aec0-4304-8b77-49250b7e97cd",
|
36
|
+
"variable_values":null,
|
37
|
+
"set_variable_values_names":{
|
38
|
+
"add_overhangs_by_projection_factor.projection_factor":0.15678702925331892,
|
39
|
+
"adjust_thermostat_setpoints_by_degrees.cooling_adjustment":1,
|
40
|
+
"adjust_thermostat_setpoints_by_degrees.heating_adjustment":-1,
|
41
|
+
"reduce_lighting_loads_by_percentage.lighting_power_reduction_percent":0,
|
42
|
+
"rotate_building_relative_to_current_orientation.relative_building_rotation":0,
|
43
|
+
"set_chilled_water_loop_temperature.cw_temp_f":44,
|
44
|
+
"set_hot_water_loop_temperature.hw_temp_f":120,
|
45
|
+
"set_r_value_of_insulation_for_exterior_walls_to_a_specific_value.r_value":13,
|
46
|
+
"set_r_value_of_insulation_for_roofs_to_a_specific_value.r_value":10,
|
47
|
+
"window_to_wall_ratio_east.wwr":0.4,
|
48
|
+
"window_to_wall_ratio_south.wwr":0.4
|
49
|
+
},
|
50
|
+
"set_variable_values_display_names":{
|
51
|
+
"South Projection Factor":0.15678702925331892,
|
52
|
+
"Degrees Fahrenheit to Adjust Cooling Setpoint By.":1,
|
53
|
+
"Degrees Fahrenheit to Adjust heating Setpoint By.":-1,
|
54
|
+
"LPD Reduction":0,
|
55
|
+
"Rotation":0,
|
56
|
+
"Desired chilled water setpoint (F)":44,
|
57
|
+
"Desired hot water setpoint (F)":120,
|
58
|
+
"Wall R-Value":13,
|
59
|
+
"Roof R-Value":10,
|
60
|
+
"East WWR":0.4,
|
61
|
+
"South WWR":0.4
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"_id":"f4a016f6-fba8-422a-aa7a-5d1bf5136527",
|
3
|
+
"analysis_id":"b7cfff21-f518-426a-8d7d-e88425c2298b",
|
4
|
+
"created_at":"2016-05-11T16:31:05Z",
|
5
|
+
"download_information":null,
|
6
|
+
"download_status":"na",
|
7
|
+
"internal_ip_address":null,
|
8
|
+
"ip_address":null,
|
9
|
+
"name":"LHS Autogenerated 10",
|
10
|
+
"openstudio_datapoint_file_name":null,
|
11
|
+
"results":{
|
12
|
+
|
13
|
+
},
|
14
|
+
"run_end_time":null,
|
15
|
+
"run_start_time":null,
|
16
|
+
"sdp_log_file":[
|
17
|
+
|
18
|
+
],
|
19
|
+
"set_variable_values":{
|
20
|
+
"6d3a3479-42d4-4484-a7ce-45daae3169aa":0.055343150682747366,
|
21
|
+
"10ea07d7-5b88-40a5-9267-e14cc9247fb8":1,
|
22
|
+
"b8354218-68ea-40ac-813d-775b41002e59":-1,
|
23
|
+
"a3b77357-c57f-4a63-a419-408fe57e41de":0,
|
24
|
+
"ab729dec-e423-4d86-aede-eac087353251":0,
|
25
|
+
"2765cc83-cc4a-4dfd-aaa1-04f04c472867":44,
|
26
|
+
"b614f269-fef6-45ab-baf6-6e8741331a86":120,
|
27
|
+
"eb8d1aad-2087-4163-977e-0978424de46e":13,
|
28
|
+
"d1069c03-d2c4-4ade-aa9e-1b128a8af565":10,
|
29
|
+
"bb3fbef6-5e8d-45a8-a314-e64e1a7990f9":0.4,
|
30
|
+
"9dfaf70b-fb39-4598-94f5-572162e2b029":0.4
|
31
|
+
},
|
32
|
+
"status":"queued",
|
33
|
+
"status_message":"",
|
34
|
+
"updated_at":"2016-05-11T16:31:06Z",
|
35
|
+
"uuid":"f4a016f6-fba8-422a-aa7a-5d1bf5136527",
|
36
|
+
"variable_values":null,
|
37
|
+
"set_variable_values_names":{
|
38
|
+
"add_overhangs_by_projection_factor.projection_factor":0.055343150682747366,
|
39
|
+
"adjust_thermostat_setpoints_by_degrees.cooling_adjustment":1,
|
40
|
+
"adjust_thermostat_setpoints_by_degrees.heating_adjustment":-1,
|
41
|
+
"reduce_lighting_loads_by_percentage.lighting_power_reduction_percent":0,
|
42
|
+
"rotate_building_relative_to_current_orientation.relative_building_rotation":0,
|
43
|
+
"set_chilled_water_loop_temperature.cw_temp_f":44,
|
44
|
+
"set_hot_water_loop_temperature.hw_temp_f":120,
|
45
|
+
"set_r_value_of_insulation_for_exterior_walls_to_a_specific_value.r_value":13,
|
46
|
+
"set_r_value_of_insulation_for_roofs_to_a_specific_value.r_value":10,
|
47
|
+
"window_to_wall_ratio_east.wwr":0.4,
|
48
|
+
"window_to_wall_ratio_south.wwr":0.4
|
49
|
+
},
|
50
|
+
"set_variable_values_display_names":{
|
51
|
+
"South Projection Factor":0.055343150682747366,
|
52
|
+
"Degrees Fahrenheit to Adjust Cooling Setpoint By.":1,
|
53
|
+
"Degrees Fahrenheit to Adjust heating Setpoint By.":-1,
|
54
|
+
"LPD Reduction":0,
|
55
|
+
"Rotation":0,
|
56
|
+
"Desired chilled water setpoint (F)":44,
|
57
|
+
"Desired hot water setpoint (F)":120,
|
58
|
+
"Wall R-Value":13,
|
59
|
+
"Roof R-Value":10,
|
60
|
+
"East WWR":0.4,
|
61
|
+
"South WWR":0.4
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
{"data_point":
|
2
|
+
{
|
3
|
+
"_id":"f4a046f6-fba8-422a-aa7a-5d1bf5136527",
|
4
|
+
"analysis_id":"b7cfef21-f518-426a-8d7d-e88425c2298b",
|
5
|
+
"created_at":"2016-05-11T16:31:05Z",
|
6
|
+
"download_information":null,
|
7
|
+
"download_status":"na",
|
8
|
+
"internal_ip_address":null,
|
9
|
+
"ip_address":null,
|
10
|
+
"name":"LHS Autogenerated 10",
|
11
|
+
"openstudio_datapoint_file_name":null,
|
12
|
+
"results":{
|
13
|
+
|
14
|
+
},
|
15
|
+
"run_end_time":null,
|
16
|
+
"run_start_time":null,
|
17
|
+
"sdp_log_file":[
|
18
|
+
|
19
|
+
],
|
20
|
+
"set_variable_values":{
|
21
|
+
"6d3a3479-42d4-4484-a7ce-45daae3169aa":0.055343150682747366,
|
22
|
+
"10ea07d7-5b88-40a5-9267-e14cc9247fb8":1,
|
23
|
+
"b8354218-68ea-40ac-813d-775b41002e59":-1,
|
24
|
+
"a3b77357-c57f-4a63-a419-408fe57e41de":0,
|
25
|
+
"ab729dec-e423-4d86-aede-eac087353251":0,
|
26
|
+
"2765cc83-cc4a-4dfd-aaa1-04f04c472867":44,
|
27
|
+
"b614f269-fef6-45ab-baf6-6e8741331a86":120,
|
28
|
+
"eb8d1aad-2087-4163-977e-0978424de46e":13,
|
29
|
+
"d1069c03-d2c4-4ade-aa9e-1b128a8af565":10,
|
30
|
+
"bb3fbef6-5e8d-45a8-a314-e64e1a7990f9":0.4,
|
31
|
+
"9dfaf70b-fb39-4598-94f5-572162e2b029":0.4
|
32
|
+
},
|
33
|
+
"status":"queued",
|
34
|
+
"status_message":"",
|
35
|
+
"updated_at":"2016-05-11T16:31:06Z",
|
36
|
+
"uuid":"f4a016f6-fba8-422a-aa7a-5d1bf5136527",
|
37
|
+
"variable_values":null,
|
38
|
+
"set_variable_values_names":{
|
39
|
+
"add_overhangs_by_projection_factor.projection_factor":0.055343150682747366,
|
40
|
+
"adjust_thermostat_setpoints_by_degrees.cooling_adjustment":1,
|
41
|
+
"adjust_thermostat_setpoints_by_degrees.heating_adjustment":-1,
|
42
|
+
"reduce_lighting_loads_by_percentage.lighting_power_reduction_percent":0,
|
43
|
+
"rotate_building_relative_to_current_orientation.relative_building_rotation":0,
|
44
|
+
"set_chilled_water_loop_temperature.cw_temp_f":44,
|
45
|
+
"set_hot_water_loop_temperature.hw_temp_f":120,
|
46
|
+
"set_r_value_of_insulation_for_exterior_walls_to_a_specific_value.r_value":13,
|
47
|
+
"set_r_value_of_insulation_for_roofs_to_a_specific_value.r_value":10,
|
48
|
+
"window_to_wall_ratio_east.wwr":0.4,
|
49
|
+
"window_to_wall_ratio_south.wwr":0.4
|
50
|
+
},
|
51
|
+
"set_variable_values_display_names":{
|
52
|
+
"South Projection Factor":0.055343150682747366,
|
53
|
+
"Degrees Fahrenheit to Adjust Cooling Setpoint By.":1,
|
54
|
+
"Degrees Fahrenheit to Adjust heating Setpoint By.":-1,
|
55
|
+
"LPD Reduction":0,
|
56
|
+
"Rotation":0,
|
57
|
+
"Desired chilled water setpoint (F)":44,
|
58
|
+
"Desired hot water setpoint (F)":120,
|
59
|
+
"Wall R-Value":13,
|
60
|
+
"Roof R-Value":10,
|
61
|
+
"East WWR":0.4,
|
62
|
+
"South WWR":0.4
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -241,11 +241,6 @@ describe OpenStudio::Analysis::Translator::Excel do
|
|
241
241
|
end
|
242
242
|
end
|
243
243
|
|
244
|
-
it 'should have typed booleans' do
|
245
|
-
expect(@excel.run_setup['use_server_as_worker']).to eq(true)
|
246
|
-
expect(@excel.run_setup['allow_multiple_jobs']).to eq(true)
|
247
|
-
end
|
248
|
-
|
249
244
|
it 'should have algorithm setup' do
|
250
245
|
expect(@excel.algorithm['number_of_samples']).to eq(100)
|
251
246
|
expect(@excel.algorithm['number_of_generations']).to eq(20)
|