pad¶
- pad(schedule, channels=None, until=None)[source]¶
Pad the input
Schedule
withDelay
s on all unoccupied timeslots untiluntil
if it is provided, otherwise untilschedule.duration
.- Parameters
schedule (
Schedule
) – Schedule to pad.channels (
Optional
[Iterable
[Channel
]]) – Channels to pad. Defaults to all channels inschedule
if not provided. If the supplied channel is not a member ofschedule
, it will be added.until (
Optional
[int
]) – Time to pad until. Defaults toschedule.duration
if not provided.
- Return type
- Returns
The padded schedule.