lsst.sims.ocs.configuration.sim_config module¶
-
class
lsst.sims.ocs.configuration.sim_config.
SimulationConfig
[source]¶ Bases:
lsst.pex.config.config.Config
Configuration for the survey simulation.
This class gathers all of the configuration objects into one place.
!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__
-
config_list
(sub_config=None)[source]¶ Get a list of parameter name, value tuples.
Parameters: sub_config (str, optional) – The name of a sub-configuration parameter. Returns: list[tuple(str, str)] – The list of configuration name, value tuples.
-
load
(ifiles)[source]¶ Load and apply configuration override files.
This function loads the specified configuration files and applies them to the configuration objects. If input is a directory, it is assumed that all files in that directory are override files.
Parameters: ifiles (list[str]) – A list of files or directories containing configuration overrides.
-
make_tuples
(value, key=None)[source]¶ Parameters: - value (any) – A configuration parameter or dictionary.
- key (str, optional) – The part of a fully qualified parameter name.
Returns: list[tuple(str, str)] – The list of configuration name, value tuples.
-
save
(save_dir='')[source]¶ Save the configuration objects to separate files.
Parameters: save_dir (str) – The directory in which to save the configuration files.
-
downtime
¶ The LSST downtime configuration.
-
environment
¶ The environmental configuration.
-
num_proposals
¶ The total number of active proposals.
Returns: int
-
observatory
¶ The LSST observatory configuration.
-
observing_site
¶ The observing site configuration.
-
sched_driver
¶ The LSST Scheduler driver configuration.
-
science
¶ The science proposal configuration.
-
survey
¶ The LSST survey configuration.
-