@@ -718,7 +718,7 @@ def query_cross_id_async(self, coordinates, radius=1*u.arcsec,
718718 constraints = "" , attributes = 'default' ,
719719 pairing = 'all' , system = 'J2000' ,
720720 get_query_payload = False ,
721- ):
721+ ):
722722 """
723723 Query the crossID server
724724
@@ -787,9 +787,9 @@ def query_cross_id_async(self, coordinates, radius=1*u.arcsec,
787787 request_payload ['qType' ] = 'form'
788788 request_payload ['selectList' ] = attributes
789789 request_payload ['uploadFile' ] = 'file.txt'
790- if pairing not in ('nearest' ,'all' ):
790+ if pairing not in ('nearest' , 'all' ):
791791 raise ValueError ("pairing must be one of 'nearest' or 'all'" )
792- request_payload ['nearest' ] = 0 if pairing == 'nearest' else 1
792+ request_payload ['nearest' ] = 0 if pairing == 'nearest' else 1
793793
794794 # for some reason, this is required on the VISTA website
795795 if self .archive is not None :
@@ -803,7 +803,6 @@ def query_cross_id_async(self, coordinates, radius=1*u.arcsec,
803803 for crd in coordinates :
804804 fh .write ("{0} {1}\n " .format (crd .ra .deg , crd .dec .deg ))
805805 fh .seek (0 )
806-
807806
808807 if hasattr (self , 'session' ) and self .logged_in ():
809808 response = self .session .post (self .CROSSID_URL ,
@@ -818,9 +817,8 @@ def query_cross_id_async(self, coordinates, radius=1*u.arcsec,
818817
819818 raise NotImplementedError ("It appears we haven't implemented the file "
820819 "upload correctly. Help is needed." )
821-
822820
823- #response = self._check_page(response.url, "query finished")
821+ # response = self._check_page(response.url, "query finished")
824822
825823 return response
826824
0 commit comments