@@ -118,7 +118,7 @@ def __init__(self, *, environment='PDR', tap_plus_conn_handler=None, datalink_ha
118118 self .get_status_messages ()
119119
120120 def cross_match_basic (self , * , table_a_full_qualified_name , table_a_column_ra , table_a_column_dec ,
121- table_b_full_qualified_name = '' , table_b_column_ra = '' , table_b_column_dec = '' ,
121+ table_b_full_qualified_name = None , table_b_column_ra = None , table_b_column_dec = None ,
122122 results_name = None ,
123123 radius = 1.0 , background = False , verbose = False ):
124124 """Performs a positional cross-match between the specified tables.
@@ -131,7 +131,7 @@ def cross_match_basic(self, *, table_a_full_qualified_name, table_a_column_ra, t
131131
132132 The result is a join table with the identifies of both tables and the distance (degrees), that is returned
133133 without metadata units. If desired, units can be added using the Units package of Astropy as follows:
134- results[‘separation’].unit = u.degree. To speed up the cross-match, pass the biggest table to the
134+ `` results[‘separation’].unit = u.degree`` . To speed up the cross-match, pass the biggest table to the
135135 ``table_b_full_qualified_name`` parameter.
136136 TAP+ only
137137
@@ -176,10 +176,13 @@ def cross_match_basic(self, *, table_a_full_qualified_name, table_a_column_ra, t
176176 if not schema_a :
177177 raise ValueError (f"Schema name is empty in full qualified table: '{ table_a_full_qualified_name } '" )
178178
179- if not table_b_full_qualified_name :
179+ if table_b_full_qualified_name is None :
180180 table_b_full_qualified_name = self .main_table
181181 table_b_column_ra = self .main_table_ra
182182 table_b_column_dec = self .main_table_dec
183+ else :
184+ if table_b_column_ra is None or table_b_column_dec is None :
185+ raise ValueError (f"Invalid ra or dec column names: '{ table_b_column_ra } ' and '{ table_b_column_dec } '" )
183186
184187 schema_b = self .__get_schema_name (table_b_full_qualified_name )
185188 if not schema_b :
@@ -252,11 +255,8 @@ def __get_table_metadata(self, full_qualified_table_name, verbose):
252255 """
253256 Get the table metadata for the input table
254257 """
255- try :
256- table_metadata = self .load_table (table = full_qualified_table_name , verbose = verbose )
257- except Exception :
258- raise ValueError (f"Not found table '{ full_qualified_table_name } ' in the archive" )
259- return table_metadata
258+
259+ return self .load_table (table = full_qualified_table_name , verbose = verbose )
260260
261261 def __get_schema_name (self , full_qualified_table_name ):
262262 """
0 commit comments