-
Notifications
You must be signed in to change notification settings - Fork 17
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 Demo Notebook (NEW TEMPLATE) #29
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Pushed reviewed notebook with following changes:
|
I just pushed the last changes to this notebook. It fixes a couple of problems and adds a way to create an stahe3 association that includes background observations . However, need to find a dataset to test this further. MAST is down so I was unable to get data to do this. Also, pytest keeps timingout in my computer. Increased value but not working. Note that the pytest worked before. Not sure if MAST issues are affecting it. |
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 made the changes to this file.
I have completed my review of the changes made to the notebook. I tested it using both the demo data and a non-demo dataset (PID 1309, Observation 13) that included a dedicated background exposure (Observation 14). In the non-demo dataset, both the science and background exposures contained leakcal members so I made sure the notebook could handle those cases. 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: The addition of creating an association for Spec3 works well with the notebook set up. There were a few things that I changed for that part of the code. The ASN file created looks as expected after these edits:
While testing the non-demo IFU data, I realized it did not account for background observations with leakcal exposures, which require an ASN file as input for spec2. The updates below address these issues.
Other edits:
There may be some PEP8 style issues to fix after this update. |
I fixed the remaining PEP8 issues. The last PRP8 failures are due to the way we format the notebooks. However, there is a case where it complains about the indentation in a cell. It is correct but still complains about it. Maybe someone can figure out why? I will be doing more testing but this version can be published as is. |
A few comments:
|
Hi David, I added some code to build the association for the general case and Kayli added the leakcal. Let me check this notebook again and try to figure out if we need to make things more clear. |
Updated notebook to address David's requests above. Changed notebook to use jwst 1.17.1 and removed unnecessary dependencies in the requirement files (as mentioned in other comments by David and Megan). Added code to make a copy of the extractid reference file when trying to write the modified version to a directory with no write permission. Fixed on PEP8 issue. |
@rizeladiaz I think I see the issue- we're talking past each other a bit. There's a method in the notebook for creating spec3 asns, but not for creating spec2 asns. In this case (given the lengthy iteration and multiple versions already) I think the simplest approach would be to merge this notebook as-is since its already functional, and then we can look into any further updates. |
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.
LG2M; it's probably useful to make a few further changes to association handling for general utility, but that can be handled as a delta against this latest version.
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.