Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, location=None, uv=None):
"""location: location of the array in (lat, long, [elev])
uv: Miriad UV file"""
ephem.Observer.__init__(self)
self.cache = 0
if not uv is None: self.from_uv(uv)
else:
if location is None:
raise ValueError('Must provide either uv or location.')
self.update_location(location)
def update_location(self, location):