EarthLocation fix, again.
EarthLocation.geodetic returns a GeodeticLocation, but in astropy v1.3
it returned a tuple.  lon, lat, height can be accessed from both with
numbered indices.
@@ -731,15 +731,9 @@ class MPCClass(BaseQuery):
request_args['c'] = '{:03d}'.format(location)
elif isinstance(location, EarthLocation):
loc = location.geodetic
- try:
- # astropy < 2.0
- request_args['long'] = loc.longitude.deg
- request_args['lat'] = loc.latitude.deg
- except AttributeError:
- # astropy >= 2.0
- request_args['long'] = loc.lon.deg
- request_args['lat'] = loc.lat.deg
- request_args['alt'] = loc.height.to(u.m).value
+ request_args['long'] = loc[0].deg
+ request_args['lat'] = loc[1].deg
+ request_args['alt'] = loc[2].to(u.m).value
elif hasattr(location, '__iter__'):
request_args['long'] = Angle(location[0]).deg
request_args['lat'] = Angle(location[1]).deg
