tbd 3.2.0 → 3.2.1

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: 92789b60b438d1518f82d2596a12314ea5c6903de2bd902f1cbbea1a2379fd1d
4
- data.tar.gz: e0e17c13b6db89a38fe39a9f8a6f4e2249e09976c08049250da3d6546689064f
3
+ metadata.gz: 7a5a9002ff406325bc226c157ed29ffc22ccb60ac46b9c6bf29358f04aa9d6a3
4
+ data.tar.gz: 60b0a52d46be3a91a2119cb5d3875826e7b278ca9ce78a230e9575263dbb4c89
5
5
  SHA512:
6
- metadata.gz: a054444e9871a6a6844c4535913b50700b94588f338434e47b8dd41ec6d73c78df8f2efd773a4bc1f86d25cd37216b7ebe48ba94e18a6f4e8547b2be987c5ecb
7
- data.tar.gz: 360c811de3c35599d73741985d80df474379a29fbad16714a0afa553b4719d50b41415f18006462176f9adc26377980507e535c616a64b77f0398b24d3fa435c
6
+ metadata.gz: df24c1565b802fd84c8f067d78662adf23d5fb2059145b6b22da98b8c06f70b49283ef7f28613e91c1258e3c7b865d17e81df93c2340aec431483597d8ddb847
7
+ data.tar.gz: 34ea2406564f08b36a54987ab08fd5d2cb24e49bfb02640169278f1138f65f36ac2c9279abb7e8be83e1c2aec4cca639b8735ab13f54f0470fe0a8470977be86
data/README.md CHANGED
@@ -32,9 +32,7 @@ TBD is systematically tested against updated OpenStudio versions (since v3.0.0).
32
32
 
33
33
  ### Windows Installation
34
34
 
35
- Install Ruby using the [RubyInstaller](https://rubyinstaller.org/downloads/archives/) for [Ruby 2.7.2 (x64)](https://github.com/oneclick/rubyinstaller2/releases/tag/RubyInstaller-2.7.2-1/rubyinstaller-2.7.2-1-x64.exe).
36
-
37
- From the command line, check that the ruby installation returns the correct Ruby version:
35
+ Either install Ruby using the [RubyInstaller](https://rubyinstaller.org/downloads/archives/) for [Ruby 2.7.2 (x64)](https://github.com/oneclick/rubyinstaller2/releases/tag/RubyInstaller-2.7.2-1/rubyinstaller-2.7.2-1-x64.exe), or preferably under [WSL2](https://gist.github.com/brgix/0d968d8f32c41f13300dc6769414df79). Run the following steps if going down the _RubyInstaller_ route. From the command line, check that the ruby installation returns the correct Ruby version:
38
36
  ```
39
37
  ruby -v
40
38
  ```
@@ -57,9 +55,6 @@ Verify your OpenStudio and Ruby configuration:
57
55
  ruby -e "require 'openstudio'" -e "puts OpenStudio::Model::Model.new"
58
56
  ```
59
57
 
60
- `git clone` the TBD repo, then run basic tests to ensure the measure operates properly (see end of this README).
61
-
62
-
63
58
  ### MacOS Installation
64
59
 
65
60
  MacOS already comes with Ruby, but likely not the right Ruby version for the desired OpenStudio measure development [environment](https://github.com/NREL/OpenStudio/wiki/OpenStudio-SDK-Version-Compatibility-Matrix). Instructions here show how to install Ruby v2.7.2 alongside MacOS's own Ruby version. Although no longer officially supported, instructions for an OpenStudio v2.9.1 setup is described [here](https://github.com/rd2/tbd/blob/master/v291_MacOS.md).
@@ -117,8 +112,9 @@ cd ~/Documents/sandbox340
117
112
  ruby -e "require 'openstudio'" -e "puts OpenStudio::Model::Model.new"
118
113
  ```
119
114
 
120
- Install the latest version of _git_ (e.g. through Homebrew), then ```git clone``` the TBD repo, e.g. under "sandbox340". Run the basic tests below to ensure the measure operates as expected.
115
+ ## Clone TBD
121
116
 
117
+ Once done with either the Windows or MacOS setup, install the latest version of _git_ (e.g. through Homebrew), then ```git clone``` the TBD repo, e.g. under "sandbox340". Run the basic tests below to ensure the measure operates as expected.
122
118
 
123
119
  ## Complete list of test commands
124
120
 
data/Rakefile CHANGED
@@ -2,28 +2,29 @@ require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec) do |t|
5
- t.rspec_opts = '--exclude-pattern \'spec/**/*suite_spec.rb\''
5
+ t.rspec_opts = "--exclude-pattern \'spec/**/*suite_spec.rb\'"
6
6
  end
7
7
 
8
8
  task default: :spec
9
9
 
10
10
  desc "Update Library Files"
11
11
  task :libraries do
12
- puts "Updating Library Files"
12
+ # puts "Updating Library Files"
13
13
 
14
14
  require "fileutils"
15
15
 
16
16
  libs = ["topolys", "osut", "oslg", "tbd"]
17
17
  files = {}
18
-
18
+
19
19
  $:.each do |path|
20
20
  libs.each do |l|
21
21
  next unless path.include?(l)
22
+
22
23
  files[l] = Dir.glob(File.join(path, "#{l}/*.rb"))
23
24
  files[l].delete_if { |f| f.include?("version.rb") } unless l == "topolys"
24
- puts "#{l} lib files:"
25
- files[l].each { |lf| puts "... #{lf}" }
26
- puts
25
+ # puts "#{l} lib files:"
26
+ # files[l].each { |lf| puts "... #{lf}" }
27
+ # puts
27
28
  end
28
29
  end
29
30
 
@@ -38,7 +39,7 @@ end
38
39
 
39
40
  desc "Update Measure"
40
41
  task measure: [:libraries] do
41
- puts "Updating Measure"
42
+ # puts "Updating Measure"
42
43
 
43
44
  require "openstudio"
44
45
  require "open3"
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>tbd_measure</name>
5
5
  <uid>8890787b-8c25-4dc8-8641-b6be1b6c2357</uid>
6
- <version_id>216d4e2e-fab7-49c6-95e9-7262edbf3277</version_id>
7
- <version_modified>20230111T223650Z</version_modified>
6
+ <version_id>2fc42e1d-2010-44ae-9837-6390512c41d4</version_id>
7
+ <version_modified>20230214T105829Z</version_modified>
8
8
  <xml_checksum>99772807</xml_checksum>
9
9
  <class_name>TBDMeasure</class_name>
10
10
  <display_name>Thermal Bridging and Derating - TBD</display_name>
@@ -388,18 +388,6 @@
388
388
  <usage_type>resource</usage_type>
389
389
  <checksum>D80E9AE6</checksum>
390
390
  </file>
391
- <file>
392
- <filename>model.rb</filename>
393
- <filetype>rb</filetype>
394
- <usage_type>resource</usage_type>
395
- <checksum>57ED37BF</checksum>
396
- </file>
397
- <file>
398
- <filename>version.rb</filename>
399
- <filetype>rb</filetype>
400
- <usage_type>resource</usage_type>
401
- <checksum>05CC939E</checksum>
402
- </file>
403
391
  <file>
404
392
  <filename>LICENSE.md</filename>
405
393
  <filetype>md</filetype>
@@ -441,12 +429,6 @@
441
429
  <usage_type>test</usage_type>
442
430
  <checksum>58ED6635</checksum>
443
431
  </file>
444
- <file>
445
- <filename>ua.rb</filename>
446
- <filetype>rb</filetype>
447
- <usage_type>resource</usage_type>
448
- <checksum>9EBACA60</checksum>
449
- </file>
450
432
  <file>
451
433
  <filename>geo.rb</filename>
452
434
  <filetype>rb</filetype>
@@ -459,11 +441,29 @@
459
441
  <usage_type>readme</usage_type>
460
442
  <checksum>B836C43A</checksum>
461
443
  </file>
444
+ <file>
445
+ <filename>ua.rb</filename>
446
+ <filetype>rb</filetype>
447
+ <usage_type>resource</usage_type>
448
+ <checksum>19193778</checksum>
449
+ </file>
462
450
  <file>
463
451
  <filename>psi.rb</filename>
464
452
  <filetype>rb</filetype>
465
453
  <usage_type>resource</usage_type>
466
- <checksum>E6ED8157</checksum>
454
+ <checksum>1045EF38</checksum>
455
+ </file>
456
+ <file>
457
+ <filename>model.rb</filename>
458
+ <filetype>rb</filetype>
459
+ <usage_type>resource</usage_type>
460
+ <checksum>8E9A76C7</checksum>
461
+ </file>
462
+ <file>
463
+ <filename>version.rb</filename>
464
+ <filetype>rb</filetype>
465
+ <usage_type>resource</usage_type>
466
+ <checksum>A3BB982A</checksum>
467
467
  </file>
468
468
  </files>
469
469
  </measure>
@@ -1,9 +1,3 @@
1
- begin
2
- require "topolys/version"
3
- rescue LoadError
4
- require File.join(File.dirname(__FILE__), 'version.rb')
5
- end
6
-
7
1
  require 'json'
8
2
  require 'securerandom'
9
3
  require 'set'
@@ -975,8 +975,9 @@ module TBD
975
975
  end
976
976
  end
977
977
 
978
- surface[:heating] = heat[:spt] if heat[:spt] # if valid heating setpoints
979
- surface[:cooling] = cool[:spt] if cool[:spt] # if valid cooling setpoints
978
+ # Recover if valid setpoints.
979
+ surface[:heating] = heat[:spt] if heat && heat[:spt]
980
+ surface[:cooling] = cool[:spt] if cool && cool[:spt]
980
981
 
981
982
  tbd[:surfaces][s.nameString] = surface
982
983
  end # (opaque) surfaces populated
@@ -1486,7 +1487,7 @@ module TBD
1486
1487
 
1487
1488
  edge[:surfaces].keys.each do |i|
1488
1489
  break if is[:rimjoist] || is[:balcony]
1489
- break unless deratables.size == 2
1490
+ break unless deratables.size > 0
1490
1491
  break if floors.key?(id)
1491
1492
  next if i == id
1492
1493
  next unless floors.key?(i)
@@ -920,7 +920,7 @@ module TBD
920
920
  model = "* modèle : #{ua[:file]}" if ua.key?(:file) && lang == :fr
921
921
  model += " (v#{ua[:version]})" if ua.key?(:version)
922
922
  report << model unless model.empty?
923
- report << "* TBD : v3.2.0"
923
+ report << "* TBD : v3.2.1"
924
924
  report << "* date : #{ua[:date]}"
925
925
 
926
926
  if lang == :en
@@ -1,3 +1,3 @@
1
1
  module Topolys
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/lib/tbd/psi.rb CHANGED
@@ -975,8 +975,9 @@ module TBD
975
975
  end
976
976
  end
977
977
 
978
- surface[:heating] = heat[:spt] if heat[:spt] # if valid heating setpoints
979
- surface[:cooling] = cool[:spt] if cool[:spt] # if valid cooling setpoints
978
+ # Recover if valid setpoints.
979
+ surface[:heating] = heat[:spt] if heat && heat[:spt]
980
+ surface[:cooling] = cool[:spt] if cool && cool[:spt]
980
981
 
981
982
  tbd[:surfaces][s.nameString] = surface
982
983
  end # (opaque) surfaces populated
@@ -1486,7 +1487,7 @@ module TBD
1486
1487
 
1487
1488
  edge[:surfaces].keys.each do |i|
1488
1489
  break if is[:rimjoist] || is[:balcony]
1489
- break unless deratables.size == 2
1490
+ break unless deratables.size > 0
1490
1491
  break if floors.key?(id)
1491
1492
  next if i == id
1492
1493
  next unless floors.key?(i)
data/lib/tbd/ua.rb CHANGED
@@ -920,7 +920,7 @@ module TBD
920
920
  model = "* modèle : #{ua[:file]}" if ua.key?(:file) && lang == :fr
921
921
  model += " (v#{ua[:version]})" if ua.key?(:version)
922
922
  report << model unless model.empty?
923
- report << "* TBD : v3.2.0"
923
+ report << "* TBD : v3.2.1"
924
924
  report << "* date : #{ua[:date]}"
925
925
 
926
926
  if lang == :en
data/lib/tbd/version.rb CHANGED
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module TBD
24
- VERSION = "3.2.0".freeze
24
+ VERSION = "3.2.1".freeze
25
25
  end
data/lib/tbd.rb CHANGED
@@ -26,38 +26,38 @@ begin
26
26
  # Try to load from the Topolys gem.
27
27
  require "topolys"
28
28
 
29
- puts "... relying on the Topolys gem"
29
+ # puts "... relying on the Topolys gem"
30
30
  rescue LoadError
31
31
  require_relative "topolys/model"
32
32
  require_relative "topolys/geometry"
33
33
  require_relative "topolys/transformation"
34
34
  require_relative "topolys/version"
35
35
 
36
- puts "... fallback to local Topolys files"
36
+ # puts "... fallback to local Topolys files"
37
37
  end
38
38
 
39
39
  begin
40
40
  # Try to load from the OSlg gem.
41
41
  require "oslg"
42
42
 
43
- puts "... relying on the OSlg gem"
43
+ # puts "... relying on the OSlg gem"
44
44
  rescue LoadError
45
45
  require_relative "oslg/oslog"
46
46
  require_relative "osut/version"
47
47
 
48
- puts "... fallback to local OSlg files"
48
+ # puts "... fallback to local OSlg files"
49
49
  end
50
50
 
51
51
  begin
52
52
  # Try to load from the OSut gem.
53
53
  require "osut"
54
54
 
55
- puts "... relying on the OSut gem"
55
+ # puts "... relying on the OSut gem"
56
56
  rescue LoadError
57
57
  require_relative "osut/utils"
58
58
  require_relative "osut/version"
59
59
 
60
- puts "... fallback to local OSut files"
60
+ # puts "... fallback to local OSut files"
61
61
  end
62
62
 
63
63
  begin
@@ -67,14 +67,14 @@ begin
67
67
  require "tbd/ua"
68
68
  require "tbd/version"
69
69
 
70
- puts "... relying on the TBD gem"
70
+ # puts "... relying on the TBD gem"
71
71
  rescue LoadError
72
72
  require_relative "tbd/psi"
73
73
  require_relative "tbd/geo"
74
74
  require_relative "tbd/ua"
75
75
  require_relative "tbd/version"
76
76
 
77
- puts "... fallback to local TBD files"
77
+ # puts "... fallback to local TBD files"
78
78
  end
79
79
 
80
80
  module TBD
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Bourgeois & Dan Macumber
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-17 00:00:00.000000000 Z
11
+ date: 2023-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: topolys
@@ -161,7 +161,7 @@ licenses:
161
161
  - MIT
162
162
  metadata:
163
163
  homepage_uri: https://github.com/rd2/tbd
164
- source_code_uri: https://github.com/rd2/tbd/tree/v3.2.0
164
+ source_code_uri: https://github.com/rd2/tbd/tree/v3.2.1
165
165
  bug_tracker_uri: https://github.com/rd2/tbd/issues
166
166
  post_install_message:
167
167
  rdoc_options: []