Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,11 @@ public boolean abortRequest() {
if (acq == null) {
return true; // nothing is running, so there is nothing to protect
}
// the data is written and finish() is only restoring the hardware, so it is safe to
// close the window
if (cleaningUp_ && acq.getDataSink().isFinished()) {
return true;
}
// always refuse while a run is live: closing the live window would close the datastore
// the run is still writing. answering yes only aborts, so the close succeeds on the next
// attempt.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ boolean setup() {
updateSettings();

// set before any validation below can return early: finish() runs on every exit from setup()
controller_ = null;
stageScanState_ = null;
originalCoreCamera_ = null;
originalChannelPreset_ = null;
Expand Down Expand Up @@ -1306,10 +1307,8 @@ void finish() {
// TODO: figure out if we really want to return piezos to 0 position (maybe center position,
// maybe not at all since we move when we switch to setup tab, something else??)
if (model_.devices().isUsingPLogic() && controller_ != null) {
// SCAPE: leave the imaging piezo where it is instead of driving it to 0. diSPIM 1.4
// passes centerPiezos=false for SCOPE (AcquisitionPanel line 4979). Parking at 0
// defocuses the live view and re-introduces the first-frame jump on the next run
// (issues #404 symptom 3 / #407).
// SCAPE: leave the imaging piezo where it is instead of driving it to 0. Parking at 0
// defocuses the live view and re-introduces the first-frame jump on the next run.
controller_.cleanUpControllerAfterAcquisition(acqSettings_, false);
controller_.stopSPIMStateMachines();
}
Expand Down
Loading