TimeToTwilightBasisFunction¶
- class rubin_sim.scheduler.basis_functions.TimeToTwilightBasisFunction(time_needed=30.0, alt_limit=18)¶
Bases:
BaseBasisFunction
Make sure there is enough time before twilight. Useful if you want to check before starting a long sequence of observations.
- Parameters:
- time_neededfloat (30.)
The time needed to run a survey (mintues).
- alt_limitint (18)
The sun altitude limit to use. Must be 12 or 18
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.