@@ -377,32 +377,33 @@ def query_region_async(self, coordinates, radius=None, inner_radius=None,
377377
378378 # Process coordinates
379379 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 )
381381
382- if not c .isscalar :
382+ if not target .isscalar :
383383 center ["-c" ] = []
384- for pos in c :
384+ for pos in target :
385385 if frame == 'galactic' :
386386 glon_deg = pos .l .to_string (unit = "deg" , decimal = True , precision = 8 )
387387 glat_deg = pos .b .to_string (unit = "deg" , decimal = True , precision = 8 ,
388388 alwayssign = True )
389389 center ["-c" ] += ["G{}{}" .format (glon_deg , glat_deg )]
390390 else :
391391 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 ,
393394 precision = 8 , alwayssign = True )
394395 center ["-c" ] += ["{}{}" .format (ra_deg , dec_deg )]
395396 columns += ["_q" ] # Always request reference to input table
396397 else :
397398 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 )
401402 center ["-c" ] = "G{glon}{glat}" .format (glon = glon , glat = glat )
402403 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 )
406407 center ["-c" ] = "{ra}{dec}" .format (ra = ra , dec = dec )
407408 elif isinstance (coordinates , tbl .Table ):
408409 if (("_RAJ2000" in coordinates .keys ()) and ("_DEJ2000" in
0 commit comments