Closed srosagomez closed 1 week ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
There are a couple errors here to deal with I think? I think the first one to tackle is getting the reference files downloaded to the runner, which errors before the hstcal issue.
The notebook is looking good so far! I noticed you started off using Path
for handling file paths, which is great. To keep everything streamlined, I’d suggest using pathlib
across the whole notebook to keep the code clean and consistent. I thought about recommending some helper functions for the plots to tidy things up, but since this is a tutorial, it might be clearer to keep things more explicit for now.
Also, it might be helpful to split this notebook into two separate ones—one for COS and one for STIS. This notebook is getting quite lengthy, and since both sections follow similar workflows, splitting them could make each one more focused and easier to manage. Just a thought!
One thing to note—I wasn't able to run checks for spelling or subtle errors like I could in a more robust code editor due to the limitations of the Review NB
. Run them first in your notebook to test them out.
I noticed two deprecation warnings that need addressing.
UserWarning: GFIT is deprecated - stsci.tools v 3.4.12 is the last version to contain it.Use astropy.modeling instead.
warnings.warn("GFIT is deprecated - stsci.tools v 3.4.12 is the last version to contain it."
UserWarning: NMPFIT is deprecated - stsci.tools v 3.5 is the last version to contain it.
warnings.warn("NMPFIT is deprecated - stsci.tools v 3.5 is the last version to contain it.")
Since this is a new notebook, it’s essential to update the methods to the latest standards.
Hi @srosagomez, The notebook is taking more than 30 minutes to run and is pulling a large data set, which is causing the runners to fail due to insufficient space. In these cases, we ask that a subset of data be used in notebooks if possible.
A notebook to guide users on shifting COS and STIS data that have wavelength offsets. Goes through identifying if there is an offset using the coadd, determining the offset in pixels, running the respective calibration pipelines, re-running coadd, and comparing the pre- and post- shifted coadds.
This notebook checklist has been made available to us by 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.