Skip to content

Commit

Permalink
Merge pull request #111 from nicost/optimization
Browse files Browse the repository at this point in the history
Engine optimization.
  • Loading branch information
henrypinkard authored Apr 6, 2024
2 parents 88602c6 + b5d7106 commit 96fd4ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/micromanager/acqj/internal/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ private void acquireImages(final AcquisitionEvent event,
// Loop through and collect all acquired images. There will be
// (# of images in sequence) x (# of camera channels) of them
boolean timeout = false;
final String axesAsJSONString = event.getAxesAsJSONString();
for (int i = 0; i < (event.getSequence() == null ? 1 : event.getSequence().size()); i++) {
if (timeout) {
// Cancel the rest of the sequence
Expand Down Expand Up @@ -541,7 +542,7 @@ private void acquireImages(final AcquisitionEvent event,
}
event.acquisition_.postNotification(
new AcqNotification(AcqNotification.Camera.class,
event.getAxesAsJSONString(), AcqNotification.Camera.POST_EXPOSURE));
axesAsJSONString, AcqNotification.Camera.POST_EXPOSURE));
for (AcquisitionHook h : event.acquisition_.getAfterExposureHooks()) {
h.run(event);
}
Expand Down

0 comments on commit 96fd4ec

Please sign in to comment.