Skip to content

Commit

Permalink
some minor rubocop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Jun 30, 2023
1 parent fb8f8c4 commit 4684992
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/measures/urban_geometry_creation/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def run(model, runner, user_arguments)
@runner.registerWarning("Surface elevation not set for building '#{name}'")
end

if feature.type == 'Building'
case feature.type
when 'Building'
# make requested building
# pass in scaled_footprint_area (calculated from floor_area / number_of_stories)
scaled_footprint_area = 0
Expand Down Expand Up @@ -170,7 +171,7 @@ def run(model, runner, user_arguments)
URBANopt::GeoJSON::Helper.convert_to_shading_surface_group(space)
end

elsif feature.type == 'District System'
when 'District System'
district_system_type = feature[:properties][:district_system_type]
if district_system_type == 'Community Photovoltaic'
shading_surfaces = URBANopt::GeoJSON::Helper.create_photovoltaics(feature, 0, model, @origin_lat_lon, @runner)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
require 'openstudio/ruleset/ShowRunnerOutput'
require 'urbanopt/geojson'
require 'minitest/autorun'
require_relative '../measure.rb'
require_relative '../measure'
require 'fileutils'

class UrbanGeometryCreationTest < MiniTest::Unit::TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
require 'openstudio/ruleset/ShowRunnerOutput'
require 'urbanopt/geojson'
require 'minitest/autorun'
require_relative '../measure.rb'
require_relative '../measure'
require 'fileutils'

class UrbanGeometryCreationTest < MiniTest::Unit::TestCase
Expand Down

0 comments on commit 4684992

Please sign in to comment.