Skip to content

Commit

Permalink
Pass in pyvo auth as a keyword arg in class initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Jan 23, 2025
1 parent c16b43b commit 39c9e23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.d/20250123_171813_steliosvoutsinas_DM_48554.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Delete the sections that don't apply -->

### Bug fixes

- Pass in session as a keyword argument to initialization of TAP classes
4 changes: 2 additions & 2 deletions src/lsst/rsp/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_tap_service(*args: str) -> pyvo.dal.TAPService:
# 81a50d7fd24428f17104a075bc0e1ac661ed6ea0/pyvo/utils/xml/elements.py#L418
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
return pyvo.dal.TAPService(tap_url, get_pyvo_auth())
return pyvo.dal.TAPService(tap_url, session=get_pyvo_auth())


def retrieve_query(query_url: str) -> pyvo.dal.AsyncTAPJob:
Expand All @@ -65,4 +65,4 @@ def retrieve_query(query_url: str) -> pyvo.dal.AsyncTAPJob:
# 81a50d7fd24428f17104a075bc0e1ac661ed6ea0/pyvo/utils/xml/elements.py#L418
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
return pyvo.dal.AsyncTAPJob(query_url, get_pyvo_auth())
return pyvo.dal.AsyncTAPJob(query_url, session=get_pyvo_auth())

0 comments on commit 39c9e23

Please sign in to comment.