lib/openstudio-standards/standards/Standards.ScheduleCompact.rb in openstudio-standards-0.2.14 vs lib/openstudio-standards/standards/Standards.ScheduleCompact.rb in openstudio-standards-0.2.15.pre.rc1

- old
+ new

@@ -2,14 +2,15 @@ # @!group ScheduleCompact # Returns the min and max value for this schedule. # # @author Andrew Parker, NREL. + # @param schedule_compact [OpenStudio::Model::ScheduleCompact] compact schedule object # return [Hash] Hash has two keys, min and max. def schedule_compact_annual_min_max_value(schedule_compact) vals = [] prev_str = '' - sch.extensibleGroups.each do |eg| + schedule_compact.extensibleGroups.each do |eg| if prev_str.include?('until') val = eg.getDouble(0) if val.is_initialized vals << eg.getDouble(0).get end