diff --git a/astroplan/constraints.py b/astroplan/constraints.py index 59be070c..f44f64d3 100644 --- a/astroplan/constraints.py +++ b/astroplan/constraints.py @@ -590,11 +590,7 @@ def __init__(self, min=None, max=None, ephemeris=None): self.ephemeris = ephemeris def compute_constraint(self, times, observer, targets): - # removed the location argument here, which causes small <1 deg - # innacuracies, but it is needed until astropy PR #5897 is released - # which should be astropy 1.3.2 - moon = get_moon(times, - ephemeris=self.ephemeris) + moon = get_moon(times, location=observer.location, ephemeris=self.ephemeris) # note to future editors - the order matters here # moon.separation(targets) is NOT the same as targets.separation(moon) # the former calculates the separation in the frame of the moon coord