lib/openstudio-standards/standards/necb/ECMS/pv_ground.rb in openstudio-standards-0.4.0 vs lib/openstudio-standards/standards/necb/ECMS/pv_ground.rb in openstudio-standards-0.5.0.rc1

- old
+ new

@@ -88,10 +88,10 @@ end # Method for calculating footprint of the building model def calculate_building_footprint(model:) building_footprint_m2_array = [] - lowest_floor = 10000000000.0 # dummy number as initialization to find the lowest floor among spaces #TODO: Question:it it fine that it has been assumed that the floor of all lowest spaces are at the same level? + lowest_floor = 10000000000.0 # dummy number as initialization to find the lowest floor among spaces # @todo Question:it it fine that it has been assumed that the floor of all lowest spaces are at the same level? model.getSpaces.sort.each do |space| space.surfaces.sort.select { |surface| (surface.surfaceType == 'Floor') && (surface.outsideBoundaryCondition != 'Surface') && (surface.outsideBoundaryCondition != 'Adiabatic') }.each do |surface| floor_vertices = surface.vertices floor_z = floor_vertices[0].z.round(1) if floor_z <= lowest_floor