-
Notifications
You must be signed in to change notification settings - Fork 19
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 MOS Demo Notebook #28
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Started review of this notebook |
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.
I just finished with the last review of the notebook. All changes are documented in JDAT-5047.
I have completed my review of the changes made to the notebook. During my check, I identified a few areas in the notebook that required minor fixes or updates. I have already addressed these in this update and have summarized the changes I made: MOS Notebook Edits:
|
A few quick comments:
|
Just checking in on the status of this? @kglidic @rizeladiaz @hayescr |
I should have the update version later today. |
|
@rizeladiaz It might be failing the execution test due to memory; I'll look at it locally. Are you happy with it otherwise now? |
@drlaw1558 Yes, it could be a memory issue. Yes, besides that I am fine with it. |
I've made a couple changes, the most relevant being a fix to the loop over uncal files (which was being limited to only processing the first file in the list). Also cleaned up a few other minor things. One request that probably best for @kglidic to address: at the moment the plot routine fails out if there are spectra from multiple sources in the output directory. E.g., run the notebook through, then change the source to extract and the plots will start returning errors because prods_1d is finding spectra from multiple sources that aren't getting filtered like for the 'spectra' vector. Please modify this routine so that it's robust against multiple sources in the same directory. |
@drlaw1558 @kglidic I think I found the issue and opened up a PR to Kayli's version here: kglidic#2 (sorry I don't have direct access to update the branch being pulled here). I was finding that when I ran a second source through the notebook that the spec3 plotting was returning an extra empty plot, was that what you were running into, David? If so this should fix it, and even if it was an actual error being thrown because prods_1d was finding multiple sources, I think this should still fix it. This reorganizes the filtering by source ID for stage 3 products before they are sorted into the "ftypes" dictionary where the x1d files are pulled from. |
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.
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.