lib/to_openstudio/schedule/fixed_interval.rb in honeybee-openstudio-2.26.0 vs lib/to_openstudio/schedule/fixed_interval.rb in honeybee-openstudio-2.27.0

- old
+ new

@@ -87,11 +87,13 @@ def to_schedule_fixed_interval(openstudio_model) # create the new schedule os_fi_schedule = OpenStudio::Model::ScheduleFixedInterval.new(openstudio_model) os_fi_schedule.setName(@hash[:identifier]) - + unless @hash[:display_name].nil? + os_fi_schedule.setDisplayName(@hash[:display_name]) + end # assign start date os_fi_schedule.setStartMonth(start_month) os_fi_schedule.setStartDay(start_day) # assign the interpolate value @@ -200,9 +202,12 @@ # create the schedule file column = columns.size # 1 based index rowsToSkip = 1 os_schedule_file = OpenStudio::Model::ScheduleFile.new(os_external_file, column, rowsToSkip) os_schedule_file.setName(@hash[:identifier]) + unless @hash[:display_name].nil? + os_schedule_file.setDisplayName(@hash[:display_name]) + end os_schedule_file.setInterpolatetoTimestep(interpolate) os_schedule_file.setMinutesperItem(interval_length) # assign the schedule type limit if @hash[:schedule_type_limit]