Skip to content

subscriptions in the MAST API#159

Draft
ttdu wants to merge 5 commits intospacetelescope:mainfrom
ttdu:subscriptions-json
Draft

subscriptions in the MAST API#159
ttdu wants to merge 5 commits intospacetelescope:mainfrom
ttdu:subscriptions-json

Conversation

@ttdu
Copy link
Copy Markdown
Collaborator

@ttdu ttdu commented May 5, 2026

No description provided.

@ttdu
Copy link
Copy Markdown
Collaborator Author

ttdu commented May 5, 2026

@snbianco the rest of the notebook is not ready for review, but I wanted to ask about the MissionsMast class defaulting to HST. in this case, when I forgot to set the mission, it tried to download the files and ended up with a lot of nonsense, because the JWST URIs don't work for HST.

what do you think about throwing an error when users don't initialize the mission, instead of defaulting to HST?

@snbianco
Copy link
Copy Markdown
Contributor

snbianco commented May 6, 2026

I may be able to do one better. I notice in the subscription JSON that mission is included. I could make it so that AQ uses that value and defaults to the mission attribute if it's not present (and fails gracefully if that doesn't work either). There's a few things I want to finish first, but I should be able to make a PR sometime this sprint.

@ttdu ttdu force-pushed the subscriptions-json branch from 0cb06cf to 99158b6 Compare May 6, 2026 20:37
@ttdu ttdu deployed to ci_env May 6, 2026 20:37 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants