@@ -377,32 +377,33 @@ def query_region_async(self, coordinates, radius=None, inner_radius=None,
377
377
378
378
# Process coordinates
379
379
if isinstance (coordinates , (commons .CoordClasses ,) + six .string_types ):
380
- c = commons .parse_coordinates (coordinates ).transform_to (frame )
380
+ target = commons .parse_coordinates (coordinates ).transform_to (frame )
381
381
382
- if not c .isscalar :
382
+ if not target .isscalar :
383
383
center ["-c" ] = []
384
- for pos in c :
384
+ for pos in target :
385
385
if frame == 'galactic' :
386
386
glon_deg = pos .l .to_string (unit = "deg" , decimal = True , precision = 8 )
387
387
glat_deg = pos .b .to_string (unit = "deg" , decimal = True , precision = 8 ,
388
388
alwayssign = True )
389
389
center ["-c" ] += ["G{}{}" .format (glon_deg , glat_deg )]
390
390
else :
391
391
ra_deg = pos .ra .to_string (unit = "deg" , decimal = True , precision = 8 )
392
- dec_deg = pos .dec .to_string (unit = "deg" , decimal = True ,
392
+ dec_deg = pos .de
393
+ to_string (unit = "deg" , decimal = True ,
393
394
precision = 8 , alwayssign = True )
394
395
center ["-c" ] += ["{}{}" .format (ra_deg , dec_deg )]
395
396
columns += ["_q" ] # Always request reference to input table
396
397
else :
397
398
if frame == 'galactic' :
398
- glon = c .l .to_string (unit = 'deg' , decimal = True , precision = 8 )
399
- glat = c .b .to_string (unit = "deg" , decimal = True , precision = 8 ,
400
- alwayssign = True )
399
+ glon = target .l .to_string (unit = 'deg' , decimal = True , precision = 8 )
400
+ glat = target .b .to_string (unit = "deg" , decimal = True , precision = 8 ,
401
+ alwayssign = True )
401
402
center ["-c" ] = "G{glon}{glat}" .format (glon = glon , glat = glat )
402
403
else :
403
- ra = c .ra .to_string (unit = 'deg' , decimal = True , precision = 8 )
404
- dec = c .dec .to_string (unit = "deg" , decimal = True , precision = 8 ,
405
- alwayssign = True )
404
+ ra = target .ra .to_string (unit = 'deg' , decimal = True , precision = 8 )
405
+ dec = target .dec .to_string (unit = "deg" , decimal = True , precision = 8 ,
406
+ alwayssign = True )
406
407
center ["-c" ] = "{ra}{dec}" .format (ra = ra , dec = dec )
407
408
elif isinstance (coordinates , tbl .Table ):
408
409
if (("_RAJ2000" in coordinates .keys ()) and ("_DEJ2000" in
0 commit comments