lsst.sims.ocs.configuration.downtime module

class lsst.sims.ocs.configuration.downtime.Downtime[source]

Bases: lsst.pex.config.config.Config

Configuration for the scheduled and unscheduled downtime.

!Allocate a new Config object.

In order to ensure that all Config object are always in a proper state when handed to users or to derived Config classes, some attributes are handled at allocation time rather than at initialization

This ensures that even if a derived Config class implements __init__, the author does not need to be concerned about when or even if he should call the base Config.__init__

setDefaults()[source]

Set defaults for the downtime configuration.

scheduled_downtime_db

Alternate database file for scheduled downtime. Must have same format as internal database.

unscheduled_downtime_random_seed

A placeholder for the random seed used when one is requested. This is only available in the saved config.

unscheduled_downtime_use_random_seed

Use a random seed determining the unscheduled downtime rather than fixed seed.