Slot¶
-
class
astroplan.
Slot
(start_time, end_time)[source]¶ Bases:
object
A time slot consisting of a start and end time
- Parameters
- start_time
Time
The starting time of the slot
- end_time
Time
The ending time of the slot
- start_time
Attributes Summary
Methods Summary
split_slot
(early_time, later_time)Split this slot and insert a new one.
Attributes Documentation
-
duration
¶
Methods Documentation
-
split_slot
(early_time, later_time)[source]¶ Split this slot and insert a new one.
Will return the new slots created, which can either be one, two or three slots depending on if there is space remaining before or after the inserted slot.
- Parameters
- early_time
Time
The start time of the new slot to insert.
- later_time
Time
The end time of the new slot to insert.
- early_time