nenupy.schedule.obsblocks.ReservedBlock

class nenupy.schedule.obsblocks.ReservedBlock(time_min, time_max, name=None)[source]

Bases: Block

Class to handle reserved schedule time blocks.

Parameters:
  • time_min (Time) – Starting time of the reserved time window.

  • time_max (Time) – Ending time of the reserved time window.

Methods Summary

from_VCR(file_name[, exclude_kps])

Instantiates a ReservedBlock object from the Virtual Control Room current booking list.

Attributes and Methods Documentation

__init__(time_min, time_max, name=None)[source]

Methods

__init__(time_min, time_max[, name])

from_VCR(file_name[, exclude_kps])

Instantiates a ReservedBlock object from the Virtual Control Room current booking list.

get([operation])

is_within(start, stop)

reset()

Attributes

size

classmethod from_VCR(file_name, exclude_kps=[])[source]

Instantiates a ReservedBlock object 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:

ReservedBlock

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