astro plan:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- astroplan v0.7 »
- Reference/API »
- SecondaryEclipseConstraint

# SecondaryEclipseConstraint

class astroplan.SecondaryEclipseConstraint(eclipsing_system)

  Bases: `Constraint`

  Constrain observations to times during secondary eclipse.

  Parameters
    eclipsing_system `EclipsingSystem`

      System which must be in secondary 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)

    Actually do the real work of computing the constraint. Subclasses override this.

    Parameters
      times `Time`

        The times to compute the constraint

      observer `Observer`

        the observaton location from which to apply the constraints

      targets sequence of `Target`

        The 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.