eisfabian / PACEtomo

Parallel cryo electron tomography via beam image shift
GNU General Public License v3.0
27 stars 6 forks source link

PACEtomo.py: make target directory selection cancelable #11

Closed MoritzWM closed 1 year ago

MoritzWM commented 1 year ago

If the user has the wrong navigator item selected when starting the PACEtomo.py script, they can get stuck in a vicious circle of directory selection and PACEtomo not being able to find target files. I encountered this bug today and the only way out was to create a text file with .txt, cancelling the script was not possible.

I don't know what sem.UserSetDirectory() or sem.ReportDirectory() return when the user presses cancel, but I think it would be a good idea to add a check.

eisfabian commented 1 year ago

Thanks for reporting this! This was indeed a bad one! I fixed it in v1.4.3! It checks now if the navNote is a text file and it also allows you to click "No" in the message box to exit the loop.

Let me know if you run into any other issues! Best, Fabian