@@ -107,6 +107,8 @@ def get_access_url(service='tap'):
107
107
url = conf .url_tap
108
108
elif service == 'api' :
109
109
url = conf .url_api
110
+ elif service == 'aliaslookup' :
111
+ url = conf .url_aliaslookup
110
112
return url
111
113
112
114
@@ -673,7 +675,7 @@ def _request_to_sql(self, request_payload):
673
675
@deprecated (since = "v0.4.1" , alternative = "query_object" )
674
676
@deprecated_renamed_argument (["show_progress" , "table_path" ],
675
677
[None , None ], "v0.4.1" , arg_in_kwargs = True )
676
- def query_planet (self , planet_name , cache = None , regularize = True , ** criteria ):
678
+ def query_planet (self , planet_name , cache = None , ** criteria ):
677
679
"""
678
680
Search the ``exoplanets`` table for a confirmed planet
679
681
@@ -685,22 +687,18 @@ def query_planet(self, planet_name, cache=None, regularize=True, **criteria):
685
687
cache : bool, optional
686
688
Should the request result be cached? This can be useful for large repeated queries,
687
689
but since the data in the archive is updated regularly, this defaults to ``False``.
688
- regularize : bool, optional
689
- If ``True``, the ``aliastable`` will be used to regularize the target name.
690
690
**criteria
691
691
Any other filtering criteria to apply. Values provided using the ``where`` keyword will
692
692
be ignored.
693
693
"""
694
- if regularize :
695
- planet_name = self ._regularize_object_name (planet_name )
696
694
criteria = self ._handle_all_columns_argument (** criteria )
697
695
criteria ["where" ] = "pl_name='{0}'" .format (planet_name .strip ())
698
696
return self .query_criteria ("exoplanets" , cache = cache , ** criteria )
699
697
700
698
@deprecated (since = "v0.4.1" , alternative = "query_object" )
701
699
@deprecated_renamed_argument (["show_progress" , "table_path" ],
702
700
[None , None ], "v0.4.1" , arg_in_kwargs = True )
703
- def query_star (self , host_name , cache = None , regularize = True , ** criteria ):
701
+ def query_star (self , host_name , cache = None , ** criteria ):
704
702
"""
705
703
Search the ``exoplanets`` table for a confirmed planet host
706
704
@@ -712,14 +710,10 @@ def query_star(self, host_name, cache=None, regularize=True, **criteria):
712
710
cache : bool, optional
713
711
Should the request result be cached? This can be useful for large repeated queries,
714
712
but since the data in the archive is updated regularly, this defaults to ``False``.
715
- regularize : bool, optional
716
- If ``True``, the ``aliastable`` will be used to regularize the target name.
717
713
**criteria
718
714
Any other filtering criteria to apply. Values provided using the ``where`` keyword will
719
715
be ignored.
720
716
"""
721
- if regularize :
722
- host_name = self ._regularize_object_name (host_name )
723
717
criteria = self ._handle_all_columns_argument (** criteria )
724
718
criteria ["where" ] = "pl_hostname='{0}'" .format (host_name .strip ())
725
719
return self .query_criteria ("exoplanets" , cache = cache , ** criteria )
0 commit comments