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
@@ -8,20 +8,32 @@ describe OpenStudio::Analysis::Formulation do
|
|
8
8
|
expect(a).to be_a OpenStudio::Analysis::Formulation
|
9
9
|
end
|
10
10
|
|
11
|
+
it 'should add measure paths' do
|
12
|
+
expect(OpenStudio::Analysis.measure_paths).to eq ['./measures']
|
13
|
+
OpenStudio::Analysis.measure_paths = %w(a b)
|
14
|
+
expect(OpenStudio::Analysis.measure_paths).to eq %w(a b)
|
15
|
+
|
16
|
+
# append a measure apth
|
17
|
+
OpenStudio::Analysis.measure_paths << 'c'
|
18
|
+
expect(OpenStudio::Analysis.measure_paths).to eq %w(a b c)
|
19
|
+
end
|
20
|
+
|
11
21
|
it 'should have a workflow object' do
|
12
22
|
a = OpenStudio::Analysis.create('workflow')
|
13
23
|
expect(a.workflow).not_to be nil
|
14
24
|
end
|
15
25
|
|
16
26
|
it 'should load the workflow from a file' do
|
27
|
+
OpenStudio::Analysis.measure_paths << 'spec/files/measures'
|
17
28
|
a = OpenStudio::Analysis.create('workflow')
|
18
|
-
file = File.join('spec/files/analysis/examples/
|
29
|
+
file = File.join('spec/files/analysis/examples/medium_office_workflow.json')
|
19
30
|
expect(a.workflow = OpenStudio::Analysis::Workflow.from_file(file)).not_to be nil
|
20
31
|
end
|
21
32
|
|
22
33
|
it 'should save a hash (version 1)' do
|
34
|
+
OpenStudio::Analysis.measure_paths << 'spec/files/measures'
|
23
35
|
a = OpenStudio::Analysis.create('workflow 2')
|
24
|
-
file = File.join('spec/files/analysis/examples/
|
36
|
+
file = File.join('spec/files/analysis/examples/medium_office_workflow.json')
|
25
37
|
expect(a.workflow = OpenStudio::Analysis::Workflow.from_file(file)).not_to be nil
|
26
38
|
h = a.to_hash
|
27
39
|
# expect(h[:workflow].empty?).not_to eq true
|
@@ -42,20 +54,20 @@ describe OpenStudio::Analysis::Formulation do
|
|
42
54
|
a = OpenStudio::Analysis.create('my analysis')
|
43
55
|
|
44
56
|
a.add_output(
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
57
|
+
display_name: 'Total Natural Gas',
|
58
|
+
name: 'standard_report_legacy.total_natural_gas',
|
59
|
+
units: 'MJ/m2',
|
60
|
+
objective_function: true
|
61
|
+
)
|
50
62
|
|
51
63
|
expect(a.to_hash[:analysis][:output_variables].first[:objective_function_index]).to eq 0
|
52
64
|
|
53
65
|
a.add_output(
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
66
|
+
display_name: 'Another Output',
|
67
|
+
name: 'standard_report_legacy.output_2',
|
68
|
+
units: 'MJ/m2',
|
69
|
+
objective_function: true
|
70
|
+
)
|
59
71
|
expect(a.to_hash[:analysis][:output_variables].last[:objective_function_index]).to eq 1
|
60
72
|
end
|
61
73
|
|
@@ -95,8 +107,10 @@ describe OpenStudio::Analysis::Formulation do
|
|
95
107
|
}
|
96
108
|
a.add_output(o)
|
97
109
|
|
98
|
-
a.seed_model
|
99
|
-
a.weather_file
|
110
|
+
a.seed_model = 'spec/files/small_seed.osm'
|
111
|
+
a.weather_file = 'spec/files/partial_weather.epw'
|
112
|
+
|
113
|
+
expect(a.seed_model.first).to eq 'spec/files/small_seed.osm'
|
100
114
|
|
101
115
|
expect(a.to_hash[:analysis][:problem][:algorithm][:objective_functions]).to match ['total_natural_gas']
|
102
116
|
expect(a.analysis_type).to eq 'single_run'
|
@@ -36,9 +36,9 @@ describe OpenStudio::Analysis::SupportFiles do
|
|
36
36
|
|
37
37
|
it 'should add a directory' do
|
38
38
|
@s.clear
|
39
|
-
@s.add_files('spec/files/measures/**/*.rb',
|
39
|
+
@s.add_files('spec/files/measures/**/*.rb', d: 'new')
|
40
40
|
|
41
|
-
expect(@s.size).to eq
|
41
|
+
expect(@s.size).to eq 10
|
42
42
|
expect(@s[0][:metadata][:d]).to eq 'new'
|
43
43
|
end
|
44
44
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe OpenStudio::Weather::Epw do
|
4
|
+
before :all do
|
5
|
+
@s = OpenStudio::Analysis::SupportFiles.new
|
6
|
+
expect(@s).to be_a OpenStudio::Analysis::SupportFiles
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should process the header of a weather file' do
|
10
|
+
epw = OpenStudio::Weather::Epw.load('spec/files/partial_weather.epw')
|
11
|
+
expect(epw.valid?).to be true
|
12
|
+
expect(epw.city).to eq 'Denver Intl Ap'
|
13
|
+
expect(epw.state).to eq 'CO'
|
14
|
+
expect(epw.country).to eq 'USA'
|
15
|
+
expect(epw.data_type).to eq 'TMY3'
|
16
|
+
expect(epw.wmo).to eq 725650
|
17
|
+
expect(epw.lat).to eq 39.83
|
18
|
+
expect(epw.lon).to eq -104.65
|
19
|
+
expect(epw.gmt).to eq -7.0
|
20
|
+
expect(epw.elevation).to eq 1650.0
|
21
|
+
|
22
|
+
expect(epw.header_data.size).to eq 7
|
23
|
+
expect(epw.weather_data.size).to eq 24
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'should read and write the weather file' do
|
27
|
+
o = 'spec/files/partial_weather.epw'
|
28
|
+
epw = OpenStudio::Weather::Epw.load(o)
|
29
|
+
f = 'spec/files/export/weather/weather_out.epw'
|
30
|
+
File.delete(f) if File.exist? f
|
31
|
+
expect(epw.save_as(f)).to eq true
|
32
|
+
expect(File.exist?(f)).to eq true
|
33
|
+
expect(File.size(o)).to eq File.size(f)
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'should append weather data' do
|
37
|
+
o = 'spec/files/partial_weather.epw'
|
38
|
+
epw = OpenStudio::Weather::Epw.load(o)
|
39
|
+
|
40
|
+
epw.append_weather_data(o)
|
41
|
+
|
42
|
+
f = 'spec/files/export/weather/weather_out_appended.epw'
|
43
|
+
epw.save_as(f)
|
44
|
+
end
|
45
|
+
end
|
@@ -25,7 +25,8 @@ describe OpenStudio::Analysis::Workflow do
|
|
25
25
|
p = 'spec/files/measures/IncreaseInsulationRValueForRoofs/measure.rb'
|
26
26
|
m = @w.add_measure_from_path('insulation', 'Increase Insulation', p)
|
27
27
|
expect(m).to be_an OpenStudio::Analysis::WorkflowStep
|
28
|
-
expect(m.measure_definition_directory).to eq '
|
28
|
+
expect(m.measure_definition_directory).to eq './measures/IncreaseInsulationRValueForRoofs'
|
29
|
+
expect(m.measure_definition_directory_local).to eq 'spec/files/measures/IncreaseInsulationRValueForRoofs'
|
29
30
|
end
|
30
31
|
|
31
32
|
it 'should clear out a workflow' do
|
@@ -10,20 +10,20 @@ describe OpenStudio::Analysis::WorkflowStep do
|
|
10
10
|
it 'should add a measure' do
|
11
11
|
h = 'spec/files/measures/IncreaseInsulationRValueForRoofs/measure.json'
|
12
12
|
s = OpenStudio::Analysis::WorkflowStep.from_measure_hash(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
'my_instance',
|
14
|
+
'my instance display name',
|
15
|
+
h,
|
16
|
+
JSON.parse(File.read(h), symbolize_names: true))
|
17
17
|
puts s
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'should tag a discrete variable' do
|
21
21
|
h = 'spec/files/measures/SetThermostatSchedules/measure.json'
|
22
22
|
measure = OpenStudio::Analysis::WorkflowStep.from_measure_hash(
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
'my_instance',
|
24
|
+
'my instance display name',
|
25
|
+
h,
|
26
|
+
JSON.parse(File.read(h), symbolize_names: true))
|
27
27
|
|
28
28
|
expect(measure.name).to eq 'my_instance'
|
29
29
|
v = {
|
@@ -41,20 +41,22 @@ describe OpenStudio::Analysis::WorkflowStep do
|
|
41
41
|
it 'should tag a continuous variable' do
|
42
42
|
h = 'spec/files/measures/SetThermostatSchedules/measure.json'
|
43
43
|
measure = OpenStudio::Analysis::WorkflowStep.from_measure_hash(
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
'my_instance',
|
45
|
+
'my instance display name',
|
46
|
+
h,
|
47
|
+
JSON.parse(File.read(h), symbolize_names: true))
|
48
48
|
|
49
49
|
expect(measure.name).to eq 'my_instance'
|
50
50
|
v = {
|
51
51
|
type: 'triangle',
|
52
52
|
minimum: 0.5,
|
53
53
|
maximum: 20,
|
54
|
-
mean: 10
|
54
|
+
mean: 10
|
55
|
+
}
|
56
|
+
o = {
|
55
57
|
static_value: 24601
|
56
58
|
}
|
57
|
-
r = measure.make_variable('cooling_sch', 'my variable', v)
|
59
|
+
r = measure.make_variable('cooling_sch', 'my variable', v, o)
|
58
60
|
|
59
61
|
h = measure.to_hash
|
60
62
|
|
@@ -67,10 +69,10 @@ describe OpenStudio::Analysis::WorkflowStep do
|
|
67
69
|
it 'should tag a normal continuous variable' do
|
68
70
|
h = 'spec/files/measures/SetThermostatSchedules/measure.json'
|
69
71
|
measure = OpenStudio::Analysis::WorkflowStep.from_measure_hash(
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
'my_instance',
|
73
|
+
'my instance display name',
|
74
|
+
h,
|
75
|
+
JSON.parse(File.read(h), symbolize_names: true))
|
74
76
|
|
75
77
|
expect(measure.name).to eq 'my_instance'
|
76
78
|
v = {
|
@@ -92,10 +94,10 @@ describe OpenStudio::Analysis::WorkflowStep do
|
|
92
94
|
it 'should tag a uniform variable' do
|
93
95
|
h = 'spec/files/measures/SetThermostatSchedules/measure.json'
|
94
96
|
measure = OpenStudio::Analysis::WorkflowStep.from_measure_hash(
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
97
|
+
'my_instance',
|
98
|
+
'my instance display name',
|
99
|
+
h,
|
100
|
+
JSON.parse(File.read(h), symbolize_names: true))
|
99
101
|
|
100
102
|
expect(measure.name).to eq 'my_instance'
|
101
103
|
v = {
|
@@ -1,28 +1,77 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::Formulation" tests="
|
3
|
-
<testcase name="OpenStudio::Analysis::Formulation should create an analysis" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::Formulation" tests="8" time="0.008319" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::Formulation should create an analysis" time="0.000646">
|
4
4
|
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::Formulation should
|
5
|
+
<testcase name="OpenStudio::Analysis::Formulation should add measure paths" time="9.9e-05">
|
6
6
|
</testcase>
|
7
|
-
<testcase name="OpenStudio::Analysis::Formulation should
|
7
|
+
<testcase name="OpenStudio::Analysis::Formulation should have a workflow object" time="8.4e-05">
|
8
8
|
</testcase>
|
9
|
-
<testcase name="OpenStudio::Analysis::Formulation should
|
9
|
+
<testcase name="OpenStudio::Analysis::Formulation should load the workflow from a file" time="0.002055">
|
10
10
|
</testcase>
|
11
|
-
<testcase name="OpenStudio::Analysis::Formulation should
|
11
|
+
<testcase name="OpenStudio::Analysis::Formulation should save a hash (version 1)" time="0.002739">
|
12
12
|
</testcase>
|
13
|
-
<testcase name="OpenStudio::Analysis::Formulation should
|
13
|
+
<testcase name="OpenStudio::Analysis::Formulation should create a save an empty analysis" time="0.00041">
|
14
14
|
</testcase>
|
15
|
-
<testcase name="OpenStudio::Analysis::Formulation should
|
15
|
+
<testcase name="OpenStudio::Analysis::Formulation should increment objective functions" time="0.000111">
|
16
|
+
</testcase>
|
17
|
+
<testcase name="OpenStudio::Analysis::Formulation should create a new formulation" time="0.001457">
|
16
18
|
</testcase>
|
17
19
|
<system-out>
|
18
20
|
Parsing file version 1
|
21
|
+
Adding measure reduce_lighting_loads_by_percentage
|
22
|
+
Adding measure reduce_electric_equipment_loads_by_percentage
|
23
|
+
Adding measure reducespaceinfiltrationbypercentage
|
24
|
+
Adding measure adjust_thermostat_setpoints_by_degrees
|
25
|
+
Adding measure reduce_ventilation_by_percentage
|
26
|
+
Adding measure enable_economizer_control
|
27
|
+
Adding measure set_boiler_thermal_efficiency
|
28
|
+
Adding measure set_r_value_of_insulation_for_exterior_walls_to_a_specific_value
|
29
|
+
Adding measure setchillercop
|
30
|
+
Adding measure set_heating_and_cooling_sizing_factors
|
31
|
+
Adding measure set_chilled_water_loop_temperature
|
32
|
+
Adding measure set_hot_water_loop_temperature
|
33
|
+
Adding measure set_minimum_vav_terminal_flow_fraction
|
34
|
+
Adding measure modify_energyplus_fan_varaible_volume_objects
|
19
35
|
Parsing file version 1
|
36
|
+
Adding measure reduce_lighting_loads_by_percentage
|
37
|
+
Adding measure reduce_electric_equipment_loads_by_percentage
|
38
|
+
Adding measure reducespaceinfiltrationbypercentage
|
39
|
+
Adding measure adjust_thermostat_setpoints_by_degrees
|
40
|
+
Adding measure reduce_ventilation_by_percentage
|
41
|
+
Adding measure enable_economizer_control
|
42
|
+
Adding measure set_boiler_thermal_efficiency
|
43
|
+
Adding measure set_r_value_of_insulation_for_exterior_walls_to_a_specific_value
|
44
|
+
Adding measure setchillercop
|
45
|
+
Adding measure set_heating_and_cooling_sizing_factors
|
46
|
+
Adding measure set_chilled_water_loop_temperature
|
47
|
+
Adding measure set_hot_water_loop_temperature
|
48
|
+
Adding measure set_minimum_vav_terminal_flow_fraction
|
49
|
+
Adding measure modify_energyplus_fan_varaible_volume_objects
|
20
50
|
loading config settings from /Users/nlong/.bcl/config.yml
|
21
51
|
loading config settings from /Users/nlong/.bcl/config.yml
|
22
52
|
</system-out>
|
23
53
|
<system-err>
|
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: uniform_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: uniform_uncertain
|
59
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
60
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
61
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
62
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
63
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
64
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
65
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
66
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
67
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
68
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
69
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
70
|
+
Could not resolve a valid weather file. Check paths to weather files
|
71
|
+
Could not resolve a valid weather file. Check paths to weather files
|
72
|
+
Could not resolve a valid weather file. Check paths to weather files
|
73
|
+
Could not resolve a valid weather file. Check paths to weather files
|
74
|
+
Could not resolve a valid weather file. Check paths to weather files
|
24
75
|
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
25
|
-
Deprecation Warning. RubyContinuousVariable (OpenStudio called this the variable_type) is no longer persisted
|
26
|
-
Deprecation Warning. workflow_step_type is no longer persisted
|
27
76
|
</system-err>
|
28
77
|
</testsuite>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::ServerApi create a new object instance" tests="1" time="0.
|
3
|
-
<testcase name="OpenStudio::Analysis::ServerApi create a new object instance should set the default host to localhost" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::ServerApi create a new object instance" tests="1" time="0.003588" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::ServerApi create a new object instance should set the default host to localhost" time="0.000138">
|
4
4
|
</testcase>
|
5
5
|
</testsuite>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::ServerApi test not localhost" tests="1" time="0.
|
3
|
-
<testcase name="OpenStudio::Analysis::ServerApi test not localhost should have a not localhost URL" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::ServerApi test not localhost" tests="1" time="0.000635" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::ServerApi test not localhost should have a not localhost URL" time="0.000432">
|
4
4
|
</testcase>
|
5
5
|
</testsuite>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::ServerApi" tests="0" time="
|
2
|
+
<testsuite name="OpenStudio::Analysis::ServerApi" tests="0" time="9.4e-05" skipped="0" timestamp="2015-04-22T13:49:49-06:00">
|
3
3
|
</testsuite>
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::SupportFiles" tests="5" time="0.
|
3
|
-
<testcase name="OpenStudio::Analysis::SupportFiles should add files" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::SupportFiles" tests="5" time="0.00112" failures="0" errors="0" skipped="2" timestamp="2015-04-22T13:49:49-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::SupportFiles should add files" time="0.00015">
|
4
4
|
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::SupportFiles should remove existing items" time="
|
5
|
+
<testcase name="OpenStudio::Analysis::SupportFiles should remove existing items" time="7.1e-05">
|
6
6
|
</testcase>
|
7
|
-
<testcase name="OpenStudio::Analysis::SupportFiles should only add existing files (PENDING)" time="
|
7
|
+
<testcase name="OpenStudio::Analysis::SupportFiles should only add existing files (PENDING)" time="2.4e-05">
|
8
8
|
<skipped/>
|
9
9
|
</testcase>
|
10
|
-
<testcase name="OpenStudio::Analysis::SupportFiles should add metadata data (PENDING)" time="
|
10
|
+
<testcase name="OpenStudio::Analysis::SupportFiles should add metadata data (PENDING)" time="1.4e-05">
|
11
11
|
<skipped/>
|
12
12
|
</testcase>
|
13
|
-
<testcase name="OpenStudio::Analysis::SupportFiles should add a directory" time="0.
|
13
|
+
<testcase name="OpenStudio::Analysis::SupportFiles should add a directory" time="0.000448">
|
14
14
|
</testcase>
|
15
15
|
</testsuite>
|
@@ -1,13 +1,31 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::Translator::Excel discrete variables" tests="2" time="0.
|
3
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel discrete variables should have parsed the spreadsheet" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::Translator::Excel discrete variables" tests="2" time="0.602897" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:35-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel discrete variables should have parsed the spreadsheet" time="0.001299">
|
4
4
|
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel discrete variables should save the file" time="0.
|
5
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel discrete variables should save the file" time="0.043285">
|
6
6
|
</testcase>
|
7
7
|
<system-out>
|
8
|
-
|
9
|
-
|
10
|
-
Adding
|
11
|
-
Adding
|
8
|
+
Saving JSON and ZIP file for Example Analysis:Example Analysis
|
9
|
+
Adding Support Files: Weather
|
10
|
+
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/partial_weather.epw
|
11
|
+
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/partial_weather_2.epw
|
12
|
+
Adding Support Files: Seed Models
|
13
|
+
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/small_seed.osm
|
14
|
+
Adding Support Files: Libraries
|
15
|
+
Adding Support Files: Worker Initialization Scripts
|
16
|
+
Adding Support Files: Worker Finalization Scripts
|
17
|
+
Adding Measures
|
18
|
+
Adding reduce_lighting_loads_by_percentage
|
19
|
+
Adding example_measure_auto_directory_name
|
12
20
|
</system-out>
|
21
|
+
<system-err>
|
22
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
23
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
24
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
25
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: uniform_uncertain
|
26
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
27
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
28
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: triangle_uncertain
|
29
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
30
|
+
</system-err>
|
13
31
|
</testsuite>
|
data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.xml
CHANGED
@@ -1,11 +1,24 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::Translator::Excel discrete with dynamic columns" tests="2" time="0.
|
3
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel discrete with dynamic columns should have parsed the spreadsheet" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::Translator::Excel discrete with dynamic columns" tests="2" time="0.508516" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:36-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel discrete with dynamic columns should have parsed the spreadsheet" time="0.000139">
|
4
4
|
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel discrete with dynamic columns should save the file" time="0.
|
5
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel discrete with dynamic columns should save the file" time="0.008162">
|
6
6
|
</testcase>
|
7
7
|
<system-out>
|
8
|
-
|
9
|
-
|
8
|
+
Saving JSON and ZIP file for test_model:test_model
|
9
|
+
Adding Support Files: Weather
|
10
|
+
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/partial_weather.epw
|
11
|
+
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/partial_weather_2.epw
|
12
|
+
Adding Support Files: Seed Models
|
13
|
+
Adding /Users/nlong/working/OpenStudio-analysis-gem/spec/files/small_seed.osm
|
14
|
+
Adding Support Files: Libraries
|
15
|
+
Adding Support Files: Worker Initialization Scripts
|
16
|
+
Adding Support Files: Worker Finalization Scripts
|
17
|
+
Adding Measures
|
18
|
+
Adding example_measure_auto_directory_name
|
10
19
|
</system-out>
|
20
|
+
<system-err>
|
21
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
22
|
+
Deprecation Warning. In Version 0.5 the _uncertain text will be removed from distribution types: discrete_uncertain
|
23
|
+
</system-err>
|
11
24
|
</testsuite>
|
@@ -1,14 +1,11 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<testsuite name="OpenStudio::Analysis::Translator::Excel no variables defined" tests="4" time="
|
3
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should have excel data" time="0.
|
2
|
+
<testsuite name="OpenStudio::Analysis::Translator::Excel no variables defined" tests="4" time="0.996347" failures="0" errors="0" skipped="0" timestamp="2015-04-22T13:49:30-06:00">
|
3
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should have excel data" time="0.197013">
|
4
4
|
</testcase>
|
5
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should process the excel file" time="0.
|
5
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should process the excel file" time="0.359092">
|
6
6
|
</testcase>
|
7
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should not work because no variables defined" time="0.
|
7
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should not work because no variables defined" time="0.092147">
|
8
8
|
</testcase>
|
9
|
-
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should not export to a JSON" time="0.
|
9
|
+
<testcase name="OpenStudio::Analysis::Translator::Excel no variables defined should not export to a JSON" time="0.347364">
|
10
10
|
</testcase>
|
11
|
-
<system-out>
|
12
|
-
#<OpenStudio::Analysis::Translator::Excel:0x007fd41acaa9e0>
|
13
|
-
</system-out>
|
14
11
|
</testsuite>
|