openstudio-analysis 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f09590a10cf6967fb9842c05d8c38ad2be1b3dd534b0f251a9a1e239634fedd
|
4
|
+
data.tar.gz: 679f353d4f85adcbd51dc9df8b2e61edd4250126a7ae49fab72058f1840e18e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39da086f21c02da1bcf3f00c371bb76f703ece1a8c3d2d1895f4585c0ac1d3ba8801858dbdeb69d922a067a733fbfe200375163b3e87917a4651a4a4f1969e3e
|
7
|
+
data.tar.gz: e834f1873b13b933444d2dfaade3dfc62b7b177063fb9dbf69b06a2e133603123b2cbf8e28707d61748065fa12634cb72ab715b54004fdae482857a60b43a4b4
|
data/CHANGELOG.md
CHANGED
@@ -65,6 +65,7 @@ module OpenStudio
|
|
65
65
|
@osw_version = '0.0.1'
|
66
66
|
@options = options
|
67
67
|
@file_paths = options[:file_paths] ? options[:file_paths] : []
|
68
|
+
@file_paths << '../lib'
|
68
69
|
@measure_paths = options[:measure_paths] ? options[:measure_paths] : []
|
69
70
|
|
70
71
|
# Initialize static inputs from the OSA
|
@@ -72,7 +72,7 @@ module OpenStudio
|
|
72
72
|
if File.exist?(File.join(local_path_to_measure, 'measure.xml'))
|
73
73
|
measure_hash = parse_measure_xml(File.join(local_path_to_measure, 'measure.xml'))
|
74
74
|
else
|
75
|
-
raise
|
75
|
+
raise 'Could not find measure.xml'
|
76
76
|
end
|
77
77
|
|
78
78
|
add_measure(instance_name, instance_display_name, local_path_to_measure, measure_hash)
|
@@ -52,14 +52,13 @@ def parse_measure_xml(measure_xml_filename)
|
|
52
52
|
measure_hash[:version_id] = xml_root.elements['//measure/version_id'].text
|
53
53
|
measure_hash[:arguments] = []
|
54
54
|
|
55
|
-
REXML::XPath.each(xml_root, '//measure/arguments/argument'
|
56
|
-
|
55
|
+
REXML::XPath.each(xml_root, '//measure/arguments/argument') do |arg|
|
57
56
|
measure_hash[:arguments] << {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
57
|
+
name: arg.elements['name'].text,
|
58
|
+
display_name: arg.elements['display_name'].text,
|
59
|
+
variable_type: arg.elements['type'].text.downcase,
|
60
|
+
default_value: arg.elements['default_value'].text,
|
61
|
+
units: arg.elements['units'] ? arg.elements['units'].text : ''
|
63
62
|
}
|
64
63
|
end
|
65
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstudio-analysis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Long
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcl
|