diff --git a/imports/schedules/comnet_schedules_parameters.py b/imports/schedules/comnet_schedules_parameters.py index ea4cae02..2eaac773 100644 --- a/imports/schedules/comnet_schedules_parameters.py +++ b/imports/schedules/comnet_schedules_parameters.py @@ -45,6 +45,12 @@ class ComnetSchedules: schedule.day_types = [cte.SUNDAY] schedule.type = name schedule.data_type = SchedulesHelper.data_type_from_comnet(data_type) - schedule.values = row_cells[schedules_per_schedule_type:].to_numpy() + if schedule.data_type == cte.TEMPERATURE: + values = [] + for cell in row_cells[schedules_per_schedule_type:].to_numpy(): + values.append((float(cell) - 32.) * 5 / 9) + schedule.values = values + else: + schedule.values = row_cells[schedules_per_schedule_type:].to_numpy() schedules.append(schedule) usage_zone.schedules = schedules