Skip to content

Commit

Permalink
Get cloud URIs for HLSPs
Browse files Browse the repository at this point in the history
  • Loading branch information
snbianco committed Nov 6, 2024
1 parent 1886a68 commit 7756f6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions astroquery/mast/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def mast_relative_path(mast_uri):
path = path.lstrip("/mast/")
elif '/ps1/' in path:
path = path.replace("/ps1/", "panstarrs/ps1/public/")
elif 'hlsp' in path:
path = path.replace("/hlsp_local/public/", "mast/")

Check warning on line 198 in astroquery/mast/utils.py

View check run for this annotation

Codecov / codecov/patch

astroquery/mast/utils.py#L197-L198

Added lines #L197 - L198 were not covered by tests
else:
path = path.lstrip("/")
result.append(path)
Expand Down

0 comments on commit 7756f6f

Please sign in to comment.