ISISNeutronMuon / MDANSE

MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
https://www.isis.stfc.ac.uk/Pages/MDANSEproject.aspx
GNU General Public License v3.0
23 stars 5 forks source link

[BUG] Jobs writing to opened files. #608

Open ChiCheng45 opened 1 week ago

ChiCheng45 commented 1 week ago

Description of the error When you run a job that save to opened files, it can cause them to end up being in a bad state. For example on windows if I run the trajectory converter with the output file set to a file already loaded then MDANSE will attempt to run the job. The job fails but it seems to clear the file in the process. This means this cleared file will still be loaded up in the MDANSE GUI.

Suggested fix If the MDT or MDA file is already open in MDANSE then the job should be blocked from running. Alternatively the user should be warned that the loaded file will be overwritten, MDANSE should then unload those files, overwrite and reload them.