nenupy.schedule.obsblocks.ReservedBlock
- class nenupy.schedule.obsblocks.ReservedBlock(time_min, time_max, name=None)[source]
Bases:
BlockClass to handle reserved schedule time blocks.
- Parameters:
Methods Summary
from_VCR(file_name[, exclude_kps])Instantiates a
ReservedBlockobject from the Virtual Control Room current booking list.Attributes and Methods Documentation
Methods
__init__(time_min, time_max[, name])from_VCR(file_name[, exclude_kps])Instantiates a
ReservedBlockobject from the Virtual Control Room current booking list.get([operation])is_within(start, stop)reset()Attributes
- classmethod from_VCR(file_name, exclude_kps=[])[source]
Instantiates a
ReservedBlockobject from the Virtual Control Room current booking list.- Parameters:
file_name (
str) – CSV file describing the VCR current booking.exclude_kps (
list[str]) – List of KPs not to consider as ReservedBlock, by default[].
- Returns:
Reserved slots from the VCR active bookings.
- Return type:
Warning
Only users with ‘administrator’ status may download the booking files.
- get(operation=<built-in function eq>, **kwargs)
Example
bb = aa.get(program=’es00’)
- reset()
- property size