Skip to content

Commit

Permalink
Merge pull request micro-manager#1724 from henrypinkard/main
Browse files Browse the repository at this point in the history
fix magellan dataset opening
  • Loading branch information
nicost committed Jun 20, 2023
2 parents e910bba + caedf6e commit 620a476
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public void accept(String s) {
Log.log(s);
}
};
pixelStageTranslator_ = acq_.getPixelStageTranslator();
if (acq_ != null) {
pixelStageTranslator_ = acq_.getPixelStageTranslator();
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,12 @@ private void createDisplay() {
public void accept(HashMap<String, Object> axes) {

// iterate through z devices and update their current z position
for (String name : acq_.getZAxes().keySet()) {
if (axes.containsKey(name)) {
Integer i = (Integer) axes.get(name);
exploreControlsPanel_.updateGUIToReflectHardwareZPosition(name, i);
if (acq_ != null) {
for (String name : acq_.getZAxes().keySet()) {
if (axes.containsKey(name)) {
Integer i = (Integer) axes.get(name);
exploreControlsPanel_.updateGUIToReflectHardwareZPosition(name, i);
}
}
}
}
Expand Down

0 comments on commit 620a476

Please sign in to comment.