honeybee-openstudio 2.33.3 → 2.33.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +5 -5
- data/Gemfile +1 -1
- data/honeybee-openstudio.gemspec +3 -3
- data/lib/files/urbanopt_Gemfile +5 -5
- data/lib/from_openstudio/hvac/ideal_air.rb +1 -1
- data/lib/honeybee/extension.rb +0 -16
- data/lib/honeybee/model.rb +0 -17
- data/lib/honeybee/model_object.rb +0 -15
- data/lib/honeybee/simulation/parameter_model.rb +0 -17
- data/lib/measures/from_honeybee_simulation_parameter/measure.rb +0 -4
- data/lib/to_openstudio/hvac/radiant.rb +0 -2
- metadata +9 -93
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00f670b33c2af46ca1d82b6371e3ce1e3d95ea9f316061c0582294cc132400e1
|
4
|
+
data.tar.gz: f8ff5c43f625828eb63e0888eafa05da02b3b14fcef8c80cad8ed3a499d5c222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '081054756a71ee870f430a644f9d313b41e9a1a899e9147c56404480d85559d0776216dabb53c40c62c1dbae9a5d901833b8620b8d54236c5f9d438b80df685d'
|
7
|
+
data.tar.gz: 89064bfe113ed82ecb7aeafc2d9f174ed82f6a127a86829dc08c7396269f78ce790805b537674854f177ee646e68d10783da71e9803272a92a87151f0e099f32
|
data/.github/workflows/ci.yaml
CHANGED
@@ -15,8 +15,8 @@ jobs:
|
|
15
15
|
run: |
|
16
16
|
echo $(pwd)
|
17
17
|
echo $(ls)
|
18
|
-
docker pull nrel/openstudio:3.
|
19
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.
|
18
|
+
docker pull nrel/openstudio:3.5.0
|
19
|
+
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.5.0
|
20
20
|
docker exec -t test pwd
|
21
21
|
docker exec -t test ls
|
22
22
|
docker exec -t test bundle update
|
@@ -29,16 +29,16 @@ jobs:
|
|
29
29
|
needs: test
|
30
30
|
if: github.ref == 'refs/heads/master' && github.repository_owner == 'ladybug-tools'
|
31
31
|
steps:
|
32
|
-
- uses: actions/checkout@
|
32
|
+
- uses: actions/checkout@v3
|
33
33
|
- name: set up node # we need node for for semantic release
|
34
|
-
uses: actions/setup-node@
|
34
|
+
uses: actions/setup-node@v3.6.0
|
35
35
|
with:
|
36
36
|
node-version: 14.17.0
|
37
37
|
- name: install semantic-release
|
38
38
|
run:
|
39
39
|
npm install @semantic-release/exec
|
40
40
|
- name: run semantic release
|
41
|
-
uses: cycjimmy/semantic-release-action@
|
41
|
+
uses: cycjimmy/semantic-release-action@v3
|
42
42
|
id: semantic # Need an `id` for output variables
|
43
43
|
env:
|
44
44
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/Gemfile
CHANGED
@@ -7,7 +7,7 @@ gemspec
|
|
7
7
|
if File.exist?('../OpenStudio-extension-gem') # local development copy
|
8
8
|
gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
|
9
9
|
else # get it from rubygems.org
|
10
|
-
gem 'openstudio-extension', '0.
|
10
|
+
gem 'openstudio-extension', '0.6.0'
|
11
11
|
end
|
12
12
|
|
13
13
|
# coveralls gem is used to generate coverage reports through CI
|
data/honeybee-openstudio.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'honeybee-openstudio'
|
7
|
-
spec.version = '2.33.
|
7
|
+
spec.version = '2.33.5'
|
8
8
|
spec.authors = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
|
9
9
|
spec.email = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
|
10
10
|
|
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
end
|
34
34
|
|
35
35
|
spec.add_dependency 'json_pure'
|
36
|
-
spec.add_dependency 'openstudio-extension', '0.
|
37
|
-
spec.add_dependency 'openstudio-standards', '~> 0.
|
36
|
+
spec.add_dependency 'openstudio-extension', '0.6.0'
|
37
|
+
spec.add_dependency 'openstudio-standards', '~> 0.3.0'
|
38
38
|
end
|
data/lib/files/urbanopt_Gemfile
CHANGED
@@ -9,7 +9,7 @@ if allow_local && File.exist?('../openstudio-common-measures-gem')
|
|
9
9
|
elsif allow_local
|
10
10
|
gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop'
|
11
11
|
else
|
12
|
-
gem 'openstudio-common-measures', '~> 0.
|
12
|
+
gem 'openstudio-common-measures', '~> 0.7.0'
|
13
13
|
end
|
14
14
|
|
15
15
|
if allow_local && File.exist?('../openstudio-model-articulation-gem')
|
@@ -17,7 +17,7 @@ if allow_local && File.exist?('../openstudio-model-articulation-gem')
|
|
17
17
|
elsif allow_local
|
18
18
|
gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'develop'
|
19
19
|
else
|
20
|
-
gem 'openstudio-model-articulation', '0.
|
20
|
+
gem 'openstudio-model-articulation', '0.7.0'
|
21
21
|
end
|
22
22
|
|
23
23
|
if allow_local && File.exist?('../urbanopt-geojson-gem')
|
@@ -25,7 +25,7 @@ if allow_local && File.exist?('../urbanopt-geojson-gem')
|
|
25
25
|
elsif allow_local
|
26
26
|
gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
|
27
27
|
else
|
28
|
-
gem 'urbanopt-geojson', '~> 0.
|
28
|
+
gem 'urbanopt-geojson', '~> 0.9.0'
|
29
29
|
end
|
30
30
|
|
31
31
|
if allow_local && File.exist?('../urbanopt-reporting-gem')
|
@@ -33,8 +33,8 @@ if allow_local && File.exist?('../urbanopt-reporting-gem')
|
|
33
33
|
elsif allow_local
|
34
34
|
gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
|
35
35
|
else
|
36
|
-
gem 'urbanopt-reporting', '~> 0.
|
36
|
+
gem 'urbanopt-reporting', '~> 0.7.0'
|
37
37
|
end
|
38
38
|
|
39
39
|
# include the honeybee-openstudio-gem
|
40
|
-
gem 'honeybee-openstudio', '2.
|
40
|
+
gem 'honeybee-openstudio', '2.33.4'
|
data/lib/honeybee/extension.rb
CHANGED
@@ -109,21 +109,5 @@ module Honeybee
|
|
109
109
|
@@standards
|
110
110
|
end
|
111
111
|
|
112
|
-
# check if the model schema is valid
|
113
|
-
def schema_valid?
|
114
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
115
|
-
require 'json-schema'
|
116
|
-
metaschema = JSON::Validator.validator_for_name('draft6').metaschema
|
117
|
-
JSON::Validator.validate(metaschema, @@schema)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
# return detailed schema validation errors
|
122
|
-
def schema_validation_errors
|
123
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
124
|
-
metaschema = JSON::Validator.validator_for_name('draft6').metaschema
|
125
|
-
JSON::Validator.fully_validate(metaschema, @@schema)
|
126
|
-
end
|
127
|
-
end
|
128
112
|
end
|
129
113
|
end
|
data/lib/honeybee/model.rb
CHANGED
@@ -66,23 +66,6 @@ module Honeybee
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
-
# check if the model is valid
|
70
|
-
def valid?
|
71
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
72
|
-
return validation_errors.empty?
|
73
|
-
else
|
74
|
-
return true
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
# return detailed model validation errors
|
79
|
-
def validation_errors
|
80
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
81
|
-
require 'json-schema'
|
82
|
-
JSON::Validator.fully_validate(@@schema, @hash, :fragment => "#/components/schemas/Model")
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
69
|
def defaults
|
87
70
|
@@schema[:components][:schemas][:ModelEnergyProperties][:properties]
|
88
71
|
end
|
@@ -106,21 +106,6 @@ module Honeybee
|
|
106
106
|
raise 'defaults not implemented for ModelObject, override in your class'
|
107
107
|
end
|
108
108
|
|
109
|
-
# check if the ModelObject is valid
|
110
|
-
def valid?
|
111
|
-
return validation_errors.empty?
|
112
|
-
end
|
113
|
-
|
114
|
-
# return detailed model validation errors
|
115
|
-
def validation_errors
|
116
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
117
|
-
require 'json-schema'
|
118
|
-
# if this raises a 'Invalid fragment resolution for :fragment option' it is because @type
|
119
|
-
# does not correspond to a definition in the schema
|
120
|
-
JSON::Validator.fully_validate(@@schema, @hash, :fragment => "#/components/schemas/#{@type}")
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
109
|
# remove illegal characters in identifier
|
125
110
|
def self.clean_name(str)
|
126
111
|
ascii = str.encode(Encoding.find('ASCII'), **@@encoding_options)
|
@@ -62,23 +62,6 @@ module Honeybee
|
|
62
62
|
raise "Incorrect model type for SimulationParameter '#{@type}'" unless @type == 'SimulationParameter'
|
63
63
|
end
|
64
64
|
|
65
|
-
# check if the model is valid
|
66
|
-
def valid?
|
67
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
68
|
-
return validation_errors.empty?
|
69
|
-
else
|
70
|
-
return true
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# return detailed model validation errors
|
75
|
-
def validation_errors
|
76
|
-
if Gem.loaded_specs.has_key?("json-schema")
|
77
|
-
require 'json-schema'
|
78
|
-
JSON::Validator.fully_validate(@@schema, @hash, :fragment => "#/components/schemas/#{@type}")
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
65
|
def defaults
|
83
66
|
@@schema[:components][:schemas]
|
84
67
|
end
|
@@ -80,10 +80,6 @@ class FromHoneybeeSimulationParameter < OpenStudio::Measure::ModelMeasure
|
|
80
80
|
|
81
81
|
sim_par_object = Honeybee::SimulationParameter.read_from_disk(simulation_parameter_json)
|
82
82
|
|
83
|
-
if !sim_par_object.valid?
|
84
|
-
# runner.registerError("File '#{simulation_parameter_json}' is not valid")
|
85
|
-
# return false
|
86
|
-
end
|
87
83
|
STDOUT.flush
|
88
84
|
sim_par_object.to_openstudio_model(model)
|
89
85
|
STDOUT.flush
|
@@ -345,8 +345,6 @@ class OpenStudio::Model::Model
|
|
345
345
|
mat_roof_insulation.setName("Radiant Exterior Ceiling Insulation - #{(cz_mult + 1) * 2} in.")
|
346
346
|
|
347
347
|
# create radiant internal source constructions
|
348
|
-
OpenStudio.logFree(OpenStudio::Warn, 'openstudio.Model.Model', 'New constructions exclude the metal deck, as high thermal diffusivity materials cause errors in EnergyPlus internal source construction calculations.')
|
349
|
-
|
350
348
|
radiant_ground_slab_construction = nil
|
351
349
|
radiant_exterior_slab_construction = nil
|
352
350
|
radiant_interior_floor_slab_construction = nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybee-openstudio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.33.
|
4
|
+
version: 2.33.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanushree Charan
|
@@ -11,92 +11,8 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2023-01-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
17
|
-
name: bundler
|
18
|
-
requirement: !ruby/object:Gem::Requirement
|
19
|
-
requirements:
|
20
|
-
- - "~>"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '2.1'
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.1'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: public_suffix
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
requirements:
|
34
|
-
- - "~>"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 3.1.1
|
37
|
-
type: :development
|
38
|
-
prerelease: false
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - "~>"
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 3.1.1
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: json-schema
|
46
|
-
requirement: !ruby/object:Gem::Requirement
|
47
|
-
requirements:
|
48
|
-
- - "~>"
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 2.8.1
|
51
|
-
type: :development
|
52
|
-
prerelease: false
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - "~>"
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 2.8.1
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: rake
|
60
|
-
requirement: !ruby/object:Gem::Requirement
|
61
|
-
requirements:
|
62
|
-
- - "~>"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: '13.0'
|
65
|
-
type: :development
|
66
|
-
prerelease: false
|
67
|
-
version_requirements: !ruby/object:Gem::Requirement
|
68
|
-
requirements:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '13.0'
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
name: rspec
|
74
|
-
requirement: !ruby/object:Gem::Requirement
|
75
|
-
requirements:
|
76
|
-
- - "~>"
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: '3.9'
|
79
|
-
type: :development
|
80
|
-
prerelease: false
|
81
|
-
version_requirements: !ruby/object:Gem::Requirement
|
82
|
-
requirements:
|
83
|
-
- - "~>"
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '3.9'
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: rubocop
|
88
|
-
requirement: !ruby/object:Gem::Requirement
|
89
|
-
requirements:
|
90
|
-
- - "~>"
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 1.15.0
|
93
|
-
type: :development
|
94
|
-
prerelease: false
|
95
|
-
version_requirements: !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: 1.15.0
|
100
16
|
- !ruby/object:Gem::Dependency
|
101
17
|
name: json_pure
|
102
18
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,28 +33,28 @@ dependencies:
|
|
117
33
|
requirements:
|
118
34
|
- - '='
|
119
35
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.
|
36
|
+
version: 0.6.0
|
121
37
|
type: :runtime
|
122
38
|
prerelease: false
|
123
39
|
version_requirements: !ruby/object:Gem::Requirement
|
124
40
|
requirements:
|
125
41
|
- - '='
|
126
42
|
- !ruby/object:Gem::Version
|
127
|
-
version: 0.
|
43
|
+
version: 0.6.0
|
128
44
|
- !ruby/object:Gem::Dependency
|
129
45
|
name: openstudio-standards
|
130
46
|
requirement: !ruby/object:Gem::Requirement
|
131
47
|
requirements:
|
132
48
|
- - "~>"
|
133
49
|
- !ruby/object:Gem::Version
|
134
|
-
version: 0.
|
50
|
+
version: 0.3.0
|
135
51
|
type: :runtime
|
136
52
|
prerelease: false
|
137
53
|
version_requirements: !ruby/object:Gem::Requirement
|
138
54
|
requirements:
|
139
55
|
- - "~>"
|
140
56
|
- !ruby/object:Gem::Version
|
141
|
-
version: 0.
|
57
|
+
version: 0.3.0
|
142
58
|
description: Library and measures for translating between Honeybee JSON schema and
|
143
59
|
OpenStudio Model schema (OSM).
|
144
60
|
email:
|
@@ -350,16 +266,16 @@ require_paths:
|
|
350
266
|
- lib
|
351
267
|
required_ruby_version: !ruby/object:Gem::Requirement
|
352
268
|
requirements:
|
353
|
-
- - "
|
269
|
+
- - ">="
|
354
270
|
- !ruby/object:Gem::Version
|
355
|
-
version:
|
271
|
+
version: '0'
|
356
272
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
357
273
|
requirements:
|
358
274
|
- - ">="
|
359
275
|
- !ruby/object:Gem::Version
|
360
276
|
version: '0'
|
361
277
|
requirements: []
|
362
|
-
rubygems_version: 3.
|
278
|
+
rubygems_version: 3.3.5
|
363
279
|
signing_key:
|
364
280
|
specification_version: 4
|
365
281
|
summary: Gem for translating between Honeybee JSON and OpenStudio Model.
|