PrimaryEclipseConstraint¶
-
class
astroplan.PrimaryEclipseConstraint(eclipsing_system)[source]¶ Bases:
astroplan.ConstraintConstrain observations to times during primary eclipse.
Parameters: eclipsing_system :
EclipsingSystemSystem which must be in primary eclipse.
Methods Summary
compute_constraint(times[, observer, targets])Actually do the real work of computing the constraint. Methods Documentation
-
compute_constraint(times, observer=None, targets=None)[source]¶ Actually do the real work of computing the constraint. Subclasses override this.
Parameters: times :
TimeThe times to compute the constraint
observer :
Observerthe observaton location from which to apply the constraints
targets : sequence of
TargetThe targets on which to apply the constraints.
Returns: constraint_result : 2D array of float or bool
The constraints, with targets along the first index and times along the second.
-