lsst.sims.ocs.observatory.variational_model module

class lsst.sims.ocs.observatory.variational_model.VariationalModel(config)[source]

Bases: future.types.newobject.newobject

Class for handling variation of the Observatory kinematic parameters.

This class handles varying telescope and dome kinematic parameters over the duration of the survey. It uses a linear percentage decrease model for now.

Initialize the class.

Parameters:config (class`.Observatory`) – The instance of the observatory configuration.
change_speeds_and_accelerations(sub_system, change, time_frac)[source]

Perform a linear degradation on speeds, accelerations and decelerations.

Parameters:
  • sub_system (dict) – The sub-system configuration to modify.
  • change (float) – The percent change for the calculation.
  • time_frac (float) – The fraction of survey completion.
modify_parameters(night, duration)[source]

Modify the observatory parameters according to the model.

Parameters:
  • night (int) – The current survey observing night.
  • duration (int) – The survey duration in days.
Returns:

dict – The modified observatory configuration.

active

Determine if variational model is active.

Returns:bool