@@ -644,15 +644,14 @@ def _build_observation_query(self, coordinates, radius, json):
644644 from_query = " FROM %s" % json [self .__TAP_TABLE_STRING ]
645645 if (radiusDeg != 0 or json [self .__IS_SURVEY_MISSION_STRING ]):
646646 if (json [self .__IS_SURVEY_MISSION_STRING ]):
647- area_or_point_string = "pos"
647+ where_query = (" WHERE 1=CONTAINS(pos, CIRCLE('ICRS', %f, %f, %f));"
648+ % (ra , dec , radiusDeg ))
648649 else :
649- area_or_point_string = "fov"
650- where_query = (" WHERE 1=INTERSECTS(CIRCLE('ICRS', %f, %f, %f), %s);"
651- % (ra , dec , radiusDeg , area_or_point_string ))
650+ where_query = (" WHERE 1=INTERSECTS(CIRCLE('ICRS', %f, %f, %f), fov);"
651+ % (ra , dec , radiusDeg ))
652652 else :
653- area_or_point_string = "fov"
654- where_query = (" WHERE 1=CONTAINS(POINT('ICRS', %f, %f), %s);"
655- % (ra , dec , area_or_point_string ))
653+ where_query = (" WHERE 1=CONTAINS(POINT('ICRS', %f, %f), fov);"
654+ % (ra , dec ))
656655
657656 query = "" .join ([select_query , metadata_tap_names , from_query ,
658657 where_query ])
@@ -781,8 +780,6 @@ def _parse_xml_table(self, response):
781780 table = first_table .to_table (use_names_over_ids = True )
782781 return table
783782 except Exception as ex :
784- print (response .status_code ())
785- print (response )
786783 self .response = response
787784 self .table_parse_error = ex
788785 raise TableParseError (
0 commit comments