Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def compute(self, observer, refract=False):
if self.in_cache(observer, refract): return
ephem.FixedBody.compute(self, observer)
self.map = self.gen_uvw_map(observer, refract=refract)
self.cache(observer, refract)