AstroHuntsman / huntsman-pocs

POCS on the Huntsman Telescope
MIT License
7 stars 8 forks source link

Meridian flip problem for long observations #422

Closed danjampro closed 3 years ago

danjampro commented 3 years ago

Duration constraint is vetoing CenA observations: Observation minimum can't be met before meridian flip

Hack is to remove the constraint:

def create_huntsman_scheduler(**kwargs):
    """ Create scheduler, including configurable moon avoidance.
    TODO: Implement this in panoptes-pocs.
    """
    scheduler = create_scheduler_from_config(**kwargs)
    constraints = [c for c in scheduler.constraints if not isinstance(c, MoonAvoidance)]
    constraints = [c for c in scheduler.constraints if not isinstance(c, Duration)]
    constraints.append(HuntsmanMoonAvoidance())
    scheduler.constraints = constraints
    return scheduler

But we need to figure out why this is happening and stop it, since meridian is not for another 1.5 hours.