-
Notifications
You must be signed in to change notification settings - Fork 85
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
NIRSpec IFU demos #140
NIRSpec IFU demos #140
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Hello @melanieclarke, Thank you for submitting these changes to your notebook. Please read on for your technical review instructions. Before you beginThe technical review helps ensure that contributed notebooks a) run from top to bottom, b) follow the PEP8 standards for Python code readability, and c) conform to the Institute's style guide for Jupyter Notebooks. I've pushed the review as a new commit in this pull request. To view and edit the commit locally, follow these steps:
( From here you can work on your branch as normal. If you have trouble with this step, please let me know before continuing. InstructionsAfter updating your local copy of this branch, please open your notebook and address any warnings or errors you find. If you see cells with output like this, it means some of your code doesn't follow the PEP8 standards of code readability: (In the example above, You can test that your edits satisfy the standard by installing
Then, restart the notebook and run the following cells: After that, edit and re-run cells with warnings until you've fixed all of them. Please remember to delete the cells shown in the above image before pushing your changes back to this pull request. If you have questions or feedback on specific cells, click the earlier message in this thread from the "review-notebook-app" bot. There, you can comment on specific cells and view what's changed in the new commit. I may also write comments there. Anything posted there will also be reflected in this pull request's conversational thread. |
@melanieclarke, |
7f88e38
to
92ecc2d
Compare
Hello @melanieclarke, I will help fix style errors to ensure the notebooks merge with the main. In the meantime, I think it would be a good idea to address the execution errors. You can find the errors in the logs provided. https://github.com/spacetelescope/jdat_notebooks/actions/runs/6398259254/job/17368005414?pr=140 |
@haticekaratay - Sorry, I'm not the original author of these notebooks, and I don't have time allocated to updating them at the moment. I'm just passing them on, as requested. If the necessary edits can't be done by the JDAT team, let me know and I'll pass the request for support back to the NIRSpec team. |
Style errors have been resolved for the three notebooks, but we have a new issue. Downloading the files caused a significant depletion of disk space on our CI runners. I request that the authors reevaluate if they can reduce the number of downloaded files that may not be necessary for the workflow. Thanks! |
@melanieclarke, revisiting this notebook. unfortunately it is necessary to reduce the amount of data this notebook uses. can you or somebody else on the NIRSpec team please get in touch with us in DATB so we can agree on a path forward? thank you! |
@camipacifici - Kayli Glidic, the original author, was planning to look into that but hasn't had time. I'll ping her again and let her know DATB is ready to revisit this notebook. |
@kglidic says she'll look into it this week. |
Thank you! |
Hi, I’m currently working on reducing the amount of data that is downloaded in these notebooks. Initially, I was downloading numerous intermediate products that weren't being utilized, so I'm now in the process of filtering through these. The essential files needed for these notebooks to function properly are the uncal.fits files (in addition to a handful of products from MAST which we use to do comparisons). In the notebook utilizing data from PID 2732, there are 8 uncal.fits files (each approximately 125 MB). For the notebook involving data from PID 2729, there are 16 uncal.fits files to be downloaded (for NRS1 & NRS2, approximately 62.5 MB each). Would this quantity of data still be excessive for downloading and running these notebooks? If this is still too many files, I can minimize the number of files to be downloaded by exclusively saving the computed products utilized for the plots in the notebook by providing a Box link. Actually, I’d like to provide a Box link in these notebooks for at least downloading the older processed products from MAST (from the time that I made this notebook). It would be a handful of files that would get downloaded from the link. We use these products to do comparisons in the notebook. However, these products may have been re-processed in MAST since I made this notebook and if users download newer products from MAST the commentary throughout the notebook may no longer be valid/confusing. Is this an option? Would I be able to get access to the Box folder where I can upload a zip file for these products? |
Hi @camipacifici , realized it was probably best to actually tag someone in my previous comment. I went through the data in these notebooks and reduced the amount of data that is getting downloaded. Here is the breakdown:
Will these reduced amounts work? I also would like to have a handful of this data come from a Box link (for the older products in MAST that I was working with when I made these notebooks). If you download the products from MAST now, they have been re-processed and it would make the comments throughout the notebook confusing. Can this be done? I have the notebooks on my end set up and ready to downloaded data from a Box link, I would just need to get access to correct location in Box. I've also gone through the notebooks to fix any additional style errors, so if everything sounds doable, I can pass these notebooks along. |
Hi @kglidic, thank you so much for getting back to this! I just sent you an invite to the box folder where you can store the data. Feel free to create a folder in there. I can show you how to build the link with the human readable redirect once your zip file il there (you can also look at other notebooks for examples). |
I'm closing this PR from my fork - @kglidic will submit a new one momentarily from her own fork and we can go from there. |
This PR includes three notebooks developed by the NIRSpec team demonstrating IFU data reduction. The intent is to transfer them to the JDAT team for long-term integration and support. They will require some editing to match the conventions and standards for notebooks in this repository.
This notebook checklist has been made available to us by the the Notebooks For All team.
Its purpose is to serve as a guide for both the notebook author and the technical reviewer highlighting critical aspects to consider when striving to develop an accessible and effective notebook.
The First Cell
<h1>
or# in markdown
).1., 2.,
etc. in Markdown).The Rest of the Cells
#
in Markdown) used in the notebook.Text
Code
Images
All images (jpg, png, svgs) have an image description. This could be
alt
property)alt
attribute with no value)Any text present in images exists in a text form outside of the image (this can be alt text, captions, or surrounding text.)
Visualizations
All visualizations have an image description. Review the previous section, Images, for more information on how to add it.
Visualization descriptions include
All visualizations and their parts have enough color contrast (color contrast checker) to be legible. Remember that transparent colors have lower contrast than their opaque versions.
All visualizations convey information with more visual cues than color coding. Use text labels, patterns, or icons alongside color to achieve this.
All visualizations have an additional way for notebook readers to access the information. Linking to the original data, including a table of the data in the same notebook, or sonifying the plot are all options.