-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add spectral-cube reprojection tutorial #504
Add spectral-cube reprojection tutorial #504
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Sorry for the build failures - I just fixed those in #505 - do you mind rebasing on |
276f271
to
38916a5
Compare
The specific technical build issue here is with the kernel that the notebook is saved with. I've created an issue because we should definitely handle this gracefully on our end. astropy/nbcollection#16 In the meantime, It looks like the notebooks we are running use a generic
If you can switch it in the notebook while we fixe the tooling, that'd be 👍 |
@@ -0,0 +1,640 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed this and decided to handle the Index as part of the template so every tutorial will have it automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also highlighted this as a nice low-hanging fruit issue to tackle in e.g. astropy/learn-astropy#26
e479c64
to
4364bda
Compare
4364bda
to
36d813c
Compare
2f321a6
to
021e53b
Compare
In GitHub Actions, we got a network timeout downloading a file:
I'll re-run the GitHub Actions job now to see if it clears (if it persists we might want to look into a retry loop? or loading the files from somewhere else?) |
unfortunately, that error is expected. NRAO's ALMA server has been timing out on me all week. We can try the ESO and Japan mirrors, but a retry loop is the most reliable. It's super clunky, though. |
Good news it looks like the re-run of the GHA workflow worked!
On one hand, we could think about adding a retry-loop (with exponential back-offs and all that) to astropy.utils.data.download_file or a wrapper of it. Until we start caching built tutorials, so we don't need to rely on every tutorial being runnable all the time, either a retry or just caching to a more solid static file server is our best bet. Since it's working right now, I think we can keep going, but it's something we might need to come back to soon. |
This looks great! I had a few minor comments -- mainly to do with adding some exposition around the science context for performing these tasks. Adding that context will greatly aid in the search discovery potential for this tutorial. |
I'm confused. It looks like the build is failing. @jonathansick , are you saying it can be merged anyway? |
It was working, but not now. In this case, it looks like the server really is wonky and we should find a work-around for the download issue before merging. |
4ed3185
to
165b84d
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
165b84d
to
6287f1d
Compare
Maybe we should serve the FITS file from the astropy data server instead of downloading from the ALMA server. |
I'd be happy with that; I just picked data that were publicly available b/c I wasn't sure how much we could afford to put on the astropy server |
@@ -0,0 +1,651 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #1. filename_1 = download_file("https://almascience.nrao.edu/dataPortal/member.uid___A001_X1465_X3a33.BrickMaser_sci.spw71.cube.I.manual.image.pbcor.fits",
Maybe this should use astroquery.alma
instead? Might that be more reliable than the direct download?
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it will not. The archive is the bottleneck, not the access path to the archive.
@keflavich I can't download the datasets at all:
( Are there different URLs we can try? Once we download the datasets I'll add them to the Astropy data server for more stable access. |
Oh nevermind; the eso.org archive works. Maybe we can change the links to avoid using the archive server? |
see review on radio-astro-tools/tutorials#17