Skip to content

Commit c2f5f90

Browse files
committed
warn users not to be like me
1 parent 398ccca commit c2f5f90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

astroquery/alma/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,11 @@ def query_async(self, payload, *, public=True, science=True,
594594
if science is not None:
595595
payload['science_observation'] = science
596596
if public is not None:
597+
if 'public_data' in kwargs:
598+
warnings.warn("Both public and public_data are set. "
599+
"The ``public`` kwarg takes precedence. "
600+
"If you want ``public_data`` to be respected, "
601+
"set ``public=None``.")
597602
payload['public_data'] = public
598603

599604
query = _gen_sql(payload)

0 commit comments

Comments
 (0)