spacetelescope / stistools

Tools for HST/STIS.
http://stistools.readthedocs.io/en/latest/
Other
5 stars 23 forks source link

fix blue-end flattening indexing #130

Closed dougbrn closed 4 years ago

dougbrn commented 4 years ago

Fix the indexing issue explaining in #129.

sean-lockwood commented 4 years ago

Your change looks good, but the next line is odd: hdulist.writeto(f"{flat_file}_nsp.fits",overwrite=True)

I would suggest just opening the file in "update" mode and skipping the writeto here.

dougbrn commented 4 years ago

@sean-lockwood good idea, I've changed the example code to open the file using the "update" mode.