openstudio-analysis 1.0.2 → 1.1.0.pre.rc1
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/.rubocop.yml +2 -1
- data/.travis.yml +2 -2
- data/CHANGELOG.md +24 -0
- data/Gemfile +1 -5
- data/LICENSE.md +1 -1
- data/Rakefile +1 -1
- data/lib/openstudio-analysis.rb +2 -1
- data/lib/openstudio/analysis.rb +23 -27
- data/lib/openstudio/analysis/algorithm_attributes.rb +1 -1
- data/lib/openstudio/analysis/formulation.rb +1 -1
- data/lib/openstudio/analysis/server_api.rb +8 -14
- data/lib/openstudio/analysis/support_files.rb +1 -1
- data/lib/openstudio/analysis/translator/datapoints.rb +24 -38
- data/lib/openstudio/analysis/translator/excel.rb +2 -2
- data/lib/openstudio/analysis/translator/workflow.rb +12 -15
- data/lib/openstudio/analysis/version.rb +4 -2
- data/lib/openstudio/analysis/workflow.rb +28 -36
- data/lib/openstudio/analysis/workflow_step.rb +67 -78
- data/lib/openstudio/helpers/hash.rb +1 -1
- data/lib/openstudio/helpers/string.rb +1 -1
- data/{spec/openstudio/server_api_spec.rb → lib/openstudio/helpers/utils.rb} +26 -28
- data/lib/openstudio/weather/epw.rb +1 -1
- data/openstudio-analysis.gemspec +17 -14
- data/update_license.rb +3 -3
- metadata +57 -194
- data/spec/files/0_1_09_no_variables.xlsx +0 -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_1_09_small_list.xlsx +0 -0
- data/spec/files/0_1_09_small_list_incomplete.xlsx +0 -0
- data/spec/files/0_1_09_small_list_repeat_vars.xlsx +0 -0
- data/spec/files/0_1_09_small_list_validation_errors.xlsx +0 -0
- data/spec/files/0_1_10_proxy.xlsx +0 -0
- data/spec/files/0_1_10_proxy_user.xlsx +0 -0
- data/spec/files/0_1_10_template_input.xlsx +0 -0
- data/spec/files/0_1_11_discrete_variables.xlsx +0 -0
- data/spec/files/0_1_12_discrete_dynamic_columns.xlsx +0 -0
- data/spec/files/0_2_0_template.xlsx +0 -0
- data/spec/files/0_2_0_template_simpletest.xlsx +0 -0
- data/spec/files/0_3_0_dynamic_uuids.xlsx +0 -0
- data/spec/files/0_3_0_measure_existence.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_lhs_discrete_continuous.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/discrete_lhs_example.json +0 -809
- data/spec/files/analysis/examples/medium_office_example.json +0 -1674
- data/spec/files/analysis/examples/medium_office_workflow.json +0 -1298
- data/spec/files/measures/ActualMeasureNoJson/measure.rb +0 -80
- data/spec/files/measures/ActualMeasureNoJson/measure.xml +0 -2
- data/spec/files/measures/ExampleMeasure/measure.json +0 -3
- data/spec/files/measures/ExampleMeasure/measure.rb +0 -5
- data/spec/files/measures/ExampleMeasure/measure.xml +0 -1
- data/spec/files/measures/IncreaseInsulationRValueForRoofs/measure.json +0 -36
- data/spec/files/measures/IncreaseInsulationRValueForRoofs/measure.rb +0 -22
- data/spec/files/measures/IncreaseInsulationRValueForRoofs/measure.xml +0 -5
- data/spec/files/measures/NoMeasureRbFile/.gitkeep +0 -0
- data/spec/files/measures/ReduceLightingLoadsByPercentage/measure.json +0 -3
- data/spec/files/measures/ReduceLightingLoadsByPercentage/measure.rb +0 -5
- data/spec/files/measures/ReduceLightingLoadsByPercentage/measure.xml +0 -1
- data/spec/files/measures/SetThermostatSchedules/measure.json +0 -63
- data/spec/files/measures/SetThermostatSchedules/measure.rb +0 -254
- data/spec/files/measures/SetThermostatSchedules/measure.xml +0 -2
- data/spec/files/measures/example_measure_auto_directory_name/measure.json +0 -3
- data/spec/files/measures/example_measure_auto_directory_name/measure.rb +0 -5
- data/spec/files/measures/example_measure_auto_directory_name/measure.xml +0 -1
- data/spec/files/measures/reduce_lighting_loads_by_percentage/measure.json +0 -3
- data/spec/files/measures/reduce_lighting_loads_by_percentage/measure.rb +0 -5
- data/spec/files/measures/reduce_lighting_loads_by_percentage/measure.xml +0 -1
- data/spec/files/measures/reduce_space_infiltration_by_percentage/measure.rb +0 -5
- data/spec/files/measures/reduce_space_infiltration_by_percentage/measure.xml +0 -1
- data/spec/files/measures/rotate_building/measure.rb +0 -5
- data/spec/files/measures/rotate_building/measure.xml +0 -1
- data/spec/files/measures/set_window_to_wall_ratio_by_facade/measure.rb +0 -5
- data/spec/files/measures/set_window_to_wall_ratio_by_facade/measure.xml +0 -1
- data/spec/files/measures_second_path/measure_in_another_dir/measure.json +0 -3
- data/spec/files/measures_second_path/measure_in_another_dir/measure.rb +0 -5
- data/spec/files/measures_second_path/measure_in_another_dir/measure.xml +0 -1
- data/spec/files/partial_weather.epw +0 -32
- data/spec/files/partial_weather_2.epw +0 -32
- data/spec/files/small_seed.osm +0 -4622
- data/spec/files/worker_init/first_file.rb +0 -15
- data/spec/files/worker_init/second_file.sh +0 -4
- data/spec/files/workflow/analysis.osa +0 -1334
- data/spec/files/workflow/datapoint_0.osd +0 -65
- data/spec/files/workflow/datapoint_1.osd +0 -65
- data/spec/files/workflow/datapoint_2.osd +0 -65
- data/spec/files/workflow/datapoint_wrong_osa_id.osd +0 -65
- data/spec/integration/server_api_spec.rb +0 -83
- data/spec/openstudio/excel_spec.rb +0 -606
- data/spec/openstudio/formulation_spec.rb +0 -200
- data/spec/openstudio/hash_spec.rb +0 -56
- data/spec/openstudio/osw_spec.rb +0 -129
- data/spec/openstudio/string_spec.rb +0 -34
- data/spec/openstudio/support_files_spec.rb +0 -89
- data/spec/openstudio/weather_spec.rb +0 -80
- data/spec/openstudio/workflow_spec.rb +0 -126
- data/spec/openstudio/workflow_step_spec.rb +0 -158
- data/spec/schema/osa.json +0 -613
- data/spec/schema/osa.png +0 -0
- data/spec/schema/osd.json +0 -110
- data/spec/schema/osd.png +0 -0
- data/spec/spec_helper.rb +0 -56
data/spec/schema/osa.png
DELETED
Binary file
|
data/spec/schema/osd.json
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"description": "JSON Schema of the OpenStudioDatapoint (OSD) json fileformat v0.1",
|
4
|
-
"type": "object",
|
5
|
-
"properties": {
|
6
|
-
"data_point": {
|
7
|
-
"$ref": "#/definitions/data_point"
|
8
|
-
}
|
9
|
-
},
|
10
|
-
"required": [
|
11
|
-
"data_point"
|
12
|
-
],
|
13
|
-
"additionalProperties": false,
|
14
|
-
"definitions": {
|
15
|
-
"set_variable_values": {
|
16
|
-
"title": "set_variable_values",
|
17
|
-
"description": "Set of variable uuids as keys with associated values in the form of bool, string, or numeric",
|
18
|
-
"type": "object",
|
19
|
-
"additionalProperties": {
|
20
|
-
"description": "Variable uuid key with value as the value for the variable in the simulation defined by this file",
|
21
|
-
"type": [
|
22
|
-
"string",
|
23
|
-
"number",
|
24
|
-
"boolean"
|
25
|
-
]
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"data_point": {
|
29
|
-
"title": "Datapoint",
|
30
|
-
"description": "Hash of datapoint attributes",
|
31
|
-
"type": "object",
|
32
|
-
"properties": {
|
33
|
-
"_id": {
|
34
|
-
"description": "UUID of the OSD file",
|
35
|
-
"type": "string"
|
36
|
-
},
|
37
|
-
"analysis_id": {
|
38
|
-
"description": "UUID of the parent OSA file",
|
39
|
-
"type": "string"
|
40
|
-
},
|
41
|
-
"created_at": {
|
42
|
-
"description": "ISO8601 string defining creation date-time",
|
43
|
-
"type": "string"
|
44
|
-
},
|
45
|
-
"download_information": {
|
46
|
-
"description": "?????",
|
47
|
-
"type": "null"
|
48
|
-
},
|
49
|
-
"download_status": {
|
50
|
-
"description": "????",
|
51
|
-
"type": "string"
|
52
|
-
},
|
53
|
-
"internal_ip_address": {
|
54
|
-
"description": "?????",
|
55
|
-
"type": "string"
|
56
|
-
},
|
57
|
-
"ip_address": {
|
58
|
-
"description": "IP address of the worker consuming the OSD file",
|
59
|
-
"type": "string"
|
60
|
-
},
|
61
|
-
"name": {
|
62
|
-
"description": "User facing datapoint name",
|
63
|
-
"type": "string"
|
64
|
-
},
|
65
|
-
"output": {
|
66
|
-
"description": "?????",
|
67
|
-
"type": "null"
|
68
|
-
},
|
69
|
-
"run_end_time": {
|
70
|
-
"description": "ISO8601 date-time when simulation associated with the file was completed",
|
71
|
-
"type": "string"
|
72
|
-
},
|
73
|
-
"run_start_time": {
|
74
|
-
"description": "ISO8601 date-time when the simulation associated with the file was started",
|
75
|
-
"type": "string"
|
76
|
-
},
|
77
|
-
"set_variable_values": {
|
78
|
-
"$ref": "#/definitions/set_variable_values"
|
79
|
-
},
|
80
|
-
"status": {
|
81
|
-
"description": "Current state of the OSD simulation",
|
82
|
-
"type": "string"
|
83
|
-
},
|
84
|
-
"status_message": {
|
85
|
-
"description": "Message associated with the current state of the OSD simulation",
|
86
|
-
"type": "string"
|
87
|
-
},
|
88
|
-
"updated_at": {
|
89
|
-
"description": "ISO8601 datetime at which the OSD file was last updated",
|
90
|
-
"type": "string"
|
91
|
-
},
|
92
|
-
"uuid": {
|
93
|
-
"description": "???? Same as _id",
|
94
|
-
"type": "string"
|
95
|
-
},
|
96
|
-
"variable_values": {
|
97
|
-
"description": "?????",
|
98
|
-
"type": "null"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
"required": [
|
102
|
-
"_id",
|
103
|
-
"analysis_id",
|
104
|
-
"set_variable_values",
|
105
|
-
"uuid"
|
106
|
-
],
|
107
|
-
"additionalProperties": false
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
data/spec/schema/osd.png
DELETED
Binary file
|
data/spec/spec_helper.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
|
3
|
-
# All rights reserved.
|
4
|
-
# Redistribution and use in source and binary forms, with or without
|
5
|
-
# modification, are permitted provided that the following conditions are met:
|
6
|
-
#
|
7
|
-
# (1) Redistributions of source code must retain the above copyright notice,
|
8
|
-
# this list of conditions and the following disclaimer.
|
9
|
-
#
|
10
|
-
# (2) Redistributions in binary form must reproduce the above copyright notice,
|
11
|
-
# this list of conditions and the following disclaimer in the documentation
|
12
|
-
# and/or other materials provided with the distribution.
|
13
|
-
#
|
14
|
-
# (3) Neither the name of the copyright holder nor the names of any contributors
|
15
|
-
# may be used to endorse or promote products derived from this software without
|
16
|
-
# specific prior written permission from the respective party.
|
17
|
-
#
|
18
|
-
# (4) Other than as required in clauses (1) and (2), distributions in any form
|
19
|
-
# of modifications or other derivative works may not use the "OpenStudio"
|
20
|
-
# trademark, "OS", "os", or any other confusingly similar designation without
|
21
|
-
# specific prior written permission from Alliance for Sustainable Energy, LLC.
|
22
|
-
#
|
23
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
24
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
25
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
26
|
-
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
|
27
|
-
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
28
|
-
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
29
|
-
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
30
|
-
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
31
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
32
|
-
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
33
|
-
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
-
# *******************************************************************************
|
35
|
-
|
36
|
-
if RUBY_PLATFORM =~ /linux/
|
37
|
-
require 'coveralls'
|
38
|
-
Coveralls.wear!
|
39
|
-
end
|
40
|
-
|
41
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
42
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
43
|
-
|
44
|
-
require 'rspec'
|
45
|
-
require 'openstudio-analysis'
|
46
|
-
|
47
|
-
RSpec.configure do |config|
|
48
|
-
# Use color in STDOUT
|
49
|
-
config.color = true
|
50
|
-
|
51
|
-
# Use color not only in STDOUT but also in pagers and files
|
52
|
-
config.tty = true
|
53
|
-
|
54
|
-
# Use the specified formatter
|
55
|
-
config.formatter = :documentation # :progress, :html, :textmate
|
56
|
-
end
|