microscope-cockpit / cockpit

Cockpit is a microscope graphical user interface. It is a flexible and easy to extend platform aimed at life scientists using bespoke microscopes.
https://microscope-cockpit.org
GNU General Public License v3.0
35 stars 26 forks source link

Add a modal dialog triggered if the experiment is truncated. #882

Open iandobbie opened 9 months ago

iandobbie commented 9 months ago

The log window contains an error if the experiment is truncated as not enough data has arrived, either something went wrong, maybe one or more images were dropped, or the users cancelled the collection. They have a couple of occasions that this happened at Diamond and the user was expecting the data to reconstruct.

I suggest that we put up a modal dialog to say at least something went wrong and the data file is not complete.

carandraug commented 9 months ago

Basically, we're forcing the user to acknowledge the error to avoid the error going unnoticed. Should we expand this to all errors (because if something escalates to the point of error, then it requires user attention)?

iandobbie commented 9 months ago

Yes. Not sure if we should force this for every error. Worth considering but also might be very annoying for the user.

This particular scenario should be rare and is important ensure the user knows that the collected data is likely useless.

iandobbie commented 8 months ago

I added a modal dialog that say file truncated ok to contnue to cancel to delete file, but then does not yet delete the file. Code is in https://github.com/iandobbie/cockpit/tree/truncated-file-modal-diaglog