VisitGap¶
- class rubin_sim.scheduler.basis_functions.VisitGap(note, filter_names=None, gap_min=25.0, penalty_val=nan)¶
Bases:
BaseBasisFunction
Basis function to create a visit gap based on the survey note field.
- Parameters:
- notestr
Value of the observation “note” field to be masked.
- filter_nameslist [str], optional
List of filter names that will be considered when evaluating if the gap has passed.
- gap_minfloat (optional)
Time gap (default=25, in minutes).
- penalty_valfloat or np.nan
Value of the penalty to apply (default is np.nan).
Notes
When a list of filters is provided, all filters must be observed before the gap requirement will be activated, and once activated, only observations in these filters will be evaluated in context of whether the last observation was at least gap in the past.
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.