You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line star file.write(data, name, overwrite=True) generates a backup file of the original file named fname+"~". In past versions, it just overwrote the file if overwrite was True; otherwise, it raised an exception.
seems this was part of a larger change in #36 - I changed to defaulting to overwriting because we're adults and shouldn't be writing files programmatically without care...
I think the solution I like most is to get rid of the backup mechanism, what do you think?
Description
The line
star file.write(data, name, overwrite=True)
generates a backup file of the original file named fname+"~". In past versions, it just overwrote the file if overwrite was True; otherwise, it raised an exception.This happens here
starfile/src/starfile/writer.py
Line 44 in a2e9927
It would be great if the overwrite=True behaviour were returned to the API so that unwanted files are not generated.
The text was updated successfully, but these errors were encountered: