lsst.sims.ocs.downtime.scheduled_downtime module¶
-
class
lsst.sims.ocs.downtime.scheduled_downtime.
ScheduledDowntime
[source]¶ Bases:
future.types.newobject.newobject
Handle the scheduled downtime information.
This class handles the scheduled downtime information.
Initialize the class.
-
initialize
(downtime_file='')[source]¶ Configure the set of scheduled downtimes.
This function gets the appropriate database file and creates the set of scheduled downtimes from it. The default behavior is to use the module stored database. However, an alternate database file can be provided. The alternate database file needs to have a table called Downtime with the following columns:
- night
- int : The night (from start of simulation) the downtime occurs.
- duration
- int : The duration (units=days) of the downtime.
- activity
- str : A description of the activity involved.
Parameters: downtime_file (str, optional) – A full path to an alternate scheduled downtime database file.
-
SCHEDULED_DOWNTIME_DB
= 'scheduled_downtime.db'¶
-