mzechmeister / serval

calculate radial velocities from stellar spectra
MIT License
36 stars 9 forks source link

hdf: IOError: Unable to create file (unable to open file: #36

Open mzechmeister opened 4 years ago

mzechmeister commented 4 years ago

This can occur with MaroonX hdf spectra:

IOError: Unable to create file (unable to open file: name = '...', errno = 17, error message = 'File exists', flags = 15, o_flags = c2)

arising just in https://github.com/mzechmeister/serval/blob/3e2875024d222d37f4b39a401f14f81b37fcec2e/src/inst_MAROONXred.py#L40

It seems to happen, when the program was interupted and the file was not closed properly.