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 @@ -237,7 +237,10 @@ protected DefaultSummaryMetadata addMMSummaryMetadata(JSONObject summaryMetadata
}
summaryMetadata.put(PropertyKey.AXIS_ORDER.key(), axes);

DefaultSummaryMetadata dsmd = (DefaultSummaryMetadata) dsmb.build();
// add "z-step_um" metadata to the image viewer (used in the deskew plugin)
DefaultSummaryMetadata dsmd = (DefaultSummaryMetadata) dsmb
.zStepUm(acqSettings_.volumeSettings().sliceStepSize())
.build();

summaryMetadata.put(PropertyKey.MICRO_MANAGER_VERSION.key(),
dsmd.getMicroManagerVersion());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.micromanager.lightsheetmanager.model.acquisitions;

import mmcorej.StrVector;
import mmcorej.org.json.JSONException;
import mmcorej.org.json.JSONObject;
import org.micromanager.MultiStagePosition;
import org.micromanager.PositionList;
Expand Down Expand Up @@ -251,6 +252,11 @@ boolean run() {
currentAcquisition_ = new Acquisition(sink);

JSONObject summaryMetadata = currentAcquisition_.getSummaryMetadata();
try {
summaryMetadata.put("z-um_step", acqSettings_.volumeSettings().sliceStepSize());
} catch (JSONException e) {
studio_.logs().logError("Failed to add z-um_step metadata: " + e.getMessage());
}
DefaultSummaryMetadata dsmd = addMMSummaryMetadata(summaryMetadata, projectionMode);

// TODO(Brandon): where should i get this from?
Expand Down
Loading