spacetelescope / hst_notebooks

Generated Notebooks HTML
https://spacetelescope.github.io/hst_notebooks/
BSD 3-Clause "New" or "Revised" License
10 stars 15 forks source link

Add HASP Wavelength Adjustment notebook #297

Closed srosagomez closed 1 week ago

srosagomez commented 1 month ago

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

The Rest of the Cells

Text

Code

Images

Visualizations

review-notebook-app[bot] commented 1 month ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

sosey commented 1 month ago

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.

haticekaratay commented 1 month ago

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!

haticekaratay commented 1 month ago

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.

haticekaratay commented 1 month ago

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.

haticekaratay commented 1 month ago

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.