urbanopt-reporting 0.4.0 → 0.4.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: b054eb35c606b016c477af8a6ef130f3ea17272ebce7b7c6ba0baf7654052842
4
- data.tar.gz: c113ced6a3818b22f73254f9374068de1f0365da03b4e0e7e2c503d08cf9e184
3
+ metadata.gz: 1d4e162fc807ce5990af2325b9d38447685379a8e799150959b983f6a0d1ae7e
4
+ data.tar.gz: 9eca8a86a802e4d4377a06bd69f539c94df3af44eee0948943e5d62325abb504
5
5
  SHA512:
6
- metadata.gz: 5a0234e8a7192d06723ef03c93e1d575f9f8a49600a1c1dd8108a52dc7b6f43267265b4b58c174b72f6ddb691b032fb16134939dcc1b86019cf8092cebdce256
7
- data.tar.gz: d01b29f21b8bfe8b2600d0146d401cbdeebaeb011d953bf87d94649112e610b38a4a48634a2b747785be65434171617ff09c92ae7e1a04776dffca613e745178
6
+ metadata.gz: 0a9373a57c740179b972dee996a9aec5ed67bea9ddcb788060c7c6d87f197bbad13943f607245ad84faeb520832f8550ba97f20df3bf78448d8059b9d419fb81
7
+ data.tar.gz: 7e15367191df22e75ca8d0e5665d6d400f0223e051c4571fb26fbd7f1ae38a534ab2d176af68f17c45180afe427d8143f10938fba9bc28f024bd1a58d61da4ac
data/.rubocop.yml CHANGED
@@ -3,8 +3,7 @@ AllCops:
3
3
  - gems/**/*
4
4
  - measures/**/*
5
5
  - spec/files/**/measures/**/*
6
-
6
+ require: rubocop-performance
7
7
 
8
8
  inherit_from:
9
- - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v3.yml
10
-
9
+ - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v4.yml
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # URBANopt Reporting Gem
2
2
 
3
+ ## Version 0.4.1
4
+ Date Range: 04/27/23 - 07/01/21
5
+
6
+ - Fixed [#80](https://github.com/urbanopt/urbanopt-reporting-gem/issues/80), Update rubocop configs to v4
7
+ -
3
8
  ## Version 0.4.0
4
9
 
5
10
  Date Range: 03/27/21 - 04/26/21
@@ -428,10 +428,12 @@ class DefaultFeatureReports < OpenStudio::Measure::ReportingMeasure
428
428
  feature_report.program.maximum_roof_height_ft = feature_report.program.maximum_number_of_stories_above_ground * floor_to_floor_height
429
429
 
430
430
  # footprint_area
431
- if not ['Residential'].include?(building.standardsBuildingType.get)
432
- feature_report.program.footprint_area_sqft = feature_report.program.floor_area_sqft / number_of_stories
433
- else
434
- feature_report.program.footprint_area_sqft = convert_units(floor_area, 'm^2', 'ft^2') / building.additionalProperties.getFeatureAsInteger('NumberOfConditionedStories').get
431
+ if building.standardsBuildingType.is_initialized
432
+ if not ['Residential'].include?(building.standardsBuildingType.get)
433
+ feature_report.program.footprint_area_sqft = feature_report.program.floor_area_sqft / number_of_stories
434
+ else
435
+ feature_report.program.footprint_area_sqft = convert_units(floor_area, 'm^2', 'ft^2') / building.additionalProperties.getFeatureAsInteger('NumberOfConditionedStories').get
436
+ end
435
437
  end
436
438
 
437
439
  # number_of_residential_units
@@ -39,6 +39,7 @@
39
39
  # *********************************************************************************
40
40
 
41
41
  require 'erb'
42
+ require 'date'
42
43
 
43
44
  # This measure is originally from https://github.com/urbanopt/DES_HVAC
44
45
  # start the measure
@@ -40,6 +40,6 @@
40
40
 
41
41
  module URBANopt
42
42
  module Reporting
43
- VERSION = '0.4.0'.freeze
43
+ VERSION = '0.4.1'.freeze
44
44
  end
45
45
  end
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rspec', '~> 3.7'
30
30
  spec.add_runtime_dependency 'json-schema', '~> 2.8'
31
31
  spec.add_runtime_dependency 'json_pure', '~> 2.3'
32
- spec.add_runtime_dependency 'openstudio-extension', '~> 0.4.2'
32
+ spec.add_runtime_dependency 'openstudio-extension', '~> 0.4.3'
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanopt-reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rawad El Kontar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-04-29 00:00:00.000000000 Z
12
+ date: 2021-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: 0.4.2
90
+ version: 0.4.3
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: 0.4.2
97
+ version: 0.4.3
98
98
  description: Library include scenario default reporting measure and scenario defaults
99
99
  reports schema and classes
100
100
  email: