lsst.sims.ocs.configuration.proposal.general module

class lsst.sims.ocs.configuration.proposal.general.General[source]

Bases: lsst.pex.config.config.Config

Configuration for a general proposal. This includes area distribution, time-domain and hybrid proposals.

!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__

proposal_fields(fd, fs)[source]

Return the field Ids for this proposal.

Parameters:
  • fd (lsst.sims.survey.fields.FieldsDatabase) – An instance of the fields database.
  • fs (lsst.sims.survey.fields.FieldSelection) – An instance of the field selector.
Returns:

list[int]

set_topic(topic)[source]

Set the information on a DDS topic instance.

Parameters:topic (SALPY_scheduler.scheduler_generalPropConfigC) – The instance of the DDS topic to set information on.
Returns:SALPY_scheduler.scheduler_generalPropConfigC – The topic with current information set.
filters

Filter configuration for the proposal.

name

Name for the proposal.

scheduling

Scheduling configuration for the proposal.

sky_constraints

Sky region selection for the proposal.

sky_exclusion

Sky region selection for the proposal.

sky_nightly_bounds

Sky region selection for the proposal.

sky_region

Sky region selection for the proposal.