FractionOfObsBasisFunction¶
- class rubin_sim.scheduler.basis_functions.FractionOfObsBasisFunction(frac_total, survey_name='')¶
Bases:
BaseBasisFunction
Limit the fraction of all observations that can be labled a certain survey name. Useful for keeping DDFs from exceeding a given fraction of the total survey.
- Parameters:
- frac_totalfloat
The fraction of total observations that can be of this survey
- survey_namestr
The name of the survey
Methods Summary
check_feasibility
(conditions)If there is logic to decide if something is feasible (e.g., only if moon is down), it can be calculated here.
Methods Documentation
- check_feasibility(conditions)¶
If there is logic to decide if something is feasible (e.g., only if moon is down), it can be calculated here.
Helps prevent full __call__ from being called more than needed.