Skip to content

Commit 4175bd9

Browse files
committed
make query_survey raise a warning (...as an exception) since we've added
an 's' to the task
1 parent d231318 commit 4175bd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

astroquery/eso/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,11 @@ def _print_instrument_help(self, url, instrument, cache=True):
732732
print("\n".join(result_string))
733733
return result_string
734734

735+
def query_survey(self, **kwargs):
736+
raise DeprecationWarning("query_survey is deprecated; use "
737+
"query_surveys instead. It should "
738+
"accept the same arguments.")
739+
735740
def _print_surveys_help(self, url, cache=True):
736741
"""
737742
Download a form and print it in a quasi-human-readable way

0 commit comments

Comments
 (0)