@@ -218,10 +218,6 @@ def load_data(self, ids, *, data_release=None, data_structure='INDIVIDUAL',
218
218
-------
219
219
A table object
220
220
"""
221
-
222
- if retrieval_type is None :
223
- raise ValueError ("Missing mandatory argument 'retrieval_type'" )
224
-
225
221
now = datetime .now ()
226
222
now_formatted = now .strftime ("%Y%m%d_%H%M%S" )
227
223
temp_dirname = "temp_" + now_formatted
@@ -239,9 +235,6 @@ def load_data(self, ids, *, data_release=None, data_structure='INDIVIDUAL',
239
235
240
236
path = os .path .dirname (output_file )
241
237
242
- if ids is None :
243
- raise ValueError ("Missing mandatory argument 'ids'" )
244
-
245
238
if avoid_datatype_check is False :
246
239
# we need to check params
247
240
rt = str (retrieval_type ).upper ()
@@ -757,9 +750,9 @@ def load_user(self, user_id, *, verbose=False):
757
750
return self .is_valid_user (user_id = user_id ,
758
751
verbose = verbose )
759
752
760
- def cross_match (self , * , full_qualified_table_name_a = None ,
761
- full_qualified_table_name_b = None ,
762
- results_table_name = None ,
753
+ def cross_match (self , * , full_qualified_table_name_a ,
754
+ full_qualified_table_name_b ,
755
+ results_table_name ,
763
756
radius = 1.0 ,
764
757
background = False ,
765
758
verbose = False ):
@@ -785,12 +778,6 @@ def cross_match(self, *, full_qualified_table_name_a=None,
785
778
-------
786
779
Boolean indicating if the specified user is valid
787
780
"""
788
- if full_qualified_table_name_a is None :
789
- raise ValueError ("Table name A argument is mandatory" )
790
- if full_qualified_table_name_b is None :
791
- raise ValueError ("Table name B argument is mandatory" )
792
- if results_table_name is None :
793
- raise ValueError ("Results table name argument is mandatory" )
794
781
if radius < 0.1 or radius > 10.0 :
795
782
raise ValueError (f"Invalid radius value. Found { radius } , valid range is: 0.1 to 10.0" )
796
783
0 commit comments