nrel.hive.model.vehicle.schedules.time_range_schedule
Module Contents
Functions
given a CSV file of time ranges by ScheduleId, construct a time range schedule table |
|
given a string in CSV format, construct a time range schedule table |
|
|
reads a row of a time range CSV file, adding the associated range as a |
- nrel.hive.model.vehicle.schedules.time_range_schedule.time_range_schedules_from_file(file: str) immutables.Map[nrel.hive.util.typealiases.ScheduleId, nrel.hive.model.vehicle.schedules.schedule.ScheduleFunction][source]
given a CSV file of time ranges by ScheduleId, construct a time range schedule table
- Parameters:
file – the CSV file
- Returns:
the schedules
- nrel.hive.model.vehicle.schedules.time_range_schedule.time_range_schedules_from_string(string: str) immutables.Map[nrel.hive.util.typealiases.ScheduleId, nrel.hive.model.vehicle.schedules.schedule.ScheduleFunction][source]
given a string in CSV format, construct a time range schedule table
- Parameters:
string – the CSV file string
- Returns:
the schedules
- nrel.hive.model.vehicle.schedules.time_range_schedule.read_time_range_row(acc: immutables.Map[nrel.hive.util.typealiases.ScheduleId, nrel.hive.model.vehicle.schedules.schedule.ScheduleFunction], row: Dict)[source]
reads a row of a time range CSV file, adding the associated range as a schedule function to the accumulator
- Parameters:
acc – the collection we are adding this row to
row – the DictReader row of the time range file
- Returns:
the updated accumulator