spacetelescope / acs-notebook

Python Jupyter Notebooks that support users of the ACS instrument on board the Hubble Space Telescope
http://www.stsci.edu/hst/acs
14 stars 13 forks source link

Notebook crash when rerun with existing FITS files #8

Closed pllim closed 6 years ago

pllim commented 6 years ago

I was re-running acs_destripe_plus notebook to test the changes, but it crashed when it attempted to overwrite existing FITS file. Either clarify in the notebook that user need to remove existing files or gracefully handle the situation.

tddesjardins commented 6 years ago

I've added try except blocks to all of the notebooks when using shutil.move to grab data from the mastDownload directory. It will now remove existing files before moving the freshly downloaded ones.