Commit 39fb93f1 authored by karpov-sv's avatar karpov-sv
Browse files

We should always force overwrite older FITS files, or else it may fail when re-using the workdir

parent 73e43a21
......@@ -288,7 +288,7 @@ def get_objects_sextractor(image, header=None, mask=None, err=None, thresh=2.0,
err[err==0] = 1e30
errname = os.path.join(workdir, 'errors.fits')
fits.writeto(errname, err)
fits.writeto(errname, err, overwrite=True)
opts['WEIGHT_IMAGE'] = errname
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment