nenupy.schedule.obsblocks
Booking Blocks
- class nenupy.schedule.obsblocks.Block(*blocks)[source]
Bases:
object
Added in version 1.2.0.
- property size
- class nenupy.schedule.obsblocks.ObsBlock(name, program, target, constraints=None, duration=<TimeDelta object: scale='None' format='sec' value=3600.0>, processing_delay=None, max_extended_duration=None)[source]
Bases:
Block
Class to handle observation blocks.
- Parameters:
name (
str
) – The name of the observation, for further reference.program (
str
) – The NenuFAR scientific program to which this observation belongs.constraints (
Constraints
) – The observing constraints to apply.duration (
TimeDelta
) – The requested duration of the observation.processing_delay (
TimeDelta
) – Time delay needed after the observation for the processing to take place. Only :class:`~nenupy.schedule.obsblocks.ObsBlock`s with this parameter set are compared with each other while computing the scheduling. This parameter particularly suits the imaging data.max_extended_duration (
TimeDelta
) – Once the observation block is booked. The duration of the scheduled observation will be extended up to this value. The duration extension will cease if the resulting scheduled score ever decreases or if another scheduled observation is reached.
See also
Attributes Summary
Attributes and Methods Documentation
- property constraints
- property kpColor
- property program
- property target
- property title
- class nenupy.schedule.obsblocks.ReservedBlock(time_min, time_max)[source]
Bases:
Block
Class to handle reserved schedule time blocks.
- Parameters:
Methods Summary
from_VCR
(file_name)Instantiates a
ReservedBlock
object from the Virtual Control Room current booking list.Attributes and Methods Documentation
- classmethod from_VCR(file_name)[source]
Instantiates a
ReservedBlock
object from the Virtual Control Room current booking list.- Parameters:
file_name (
str
) – CSV file describing the VCR current booking.- Returns:
Reserved slots from the VCR active bookings.
- Return type:
Warning
Only users with ‘administrator’ status may download the booking files.