def __init__(self, latitude, longitude, name=None): """Initialize the class. Parameters ---------- latitude : tuple of 3 ints The latitude of the observer. longitude : tuple of 3 ints The longitude of the observer. name : str, optional A name for the observer's location. """ self.observer = ephem.Observer() self.observer.lat = tuple_to_string(latitude) self.observer.long = tuple_to_string(longitude) self.moon = ephem.Moon()
def test_tuple_to_string(self): coordinate = (-34, 23, 12) assert tuple_to_string(coordinate) == "-34:23:12"
def test_tuple_to_string(self): coordinate = (-34, 23, 12) assert tuple_to_string(coordinate) == "-34:23:12"