Skip to content

Commit

Permalink
fix: initial wrong scaling in colocalize
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jun 10, 2022
1 parent a38b036 commit 245f3b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- feat: implement saving and loading of structure composites (#1)
- fix: visualization issue with empty data (#47)
- fix: editing layers not possible (regression from migration to PyQt6)
- fix: initial wrong scaling in colocalize when input data has different
pixel sizes along the dimensions
0.2.4
- fix: properly handle FileNotFounderror (#44)
- fix: properly handle bmlab exceptions (#42)
Expand Down
1 change: 1 addition & 0 deletions impose/gui/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def on_image_changed(self, image):
self.groupBox_struct.setEnabled(False)
else:
self.groupBox_struct.setEnabled(True)
self.update_ui_from_scheme()

@QtCore.pyqtSlot()
def on_layer_color_changed(self):
Expand Down
4 changes: 4 additions & 0 deletions impose/gui/colocalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,5 +351,9 @@ def update_ui_from_scheme(self):
self.update_structure_table()
# set new ROIs
self.vis.set_data_source(self.current_data_source)
# Scale the current shape according to the scale in the current
# data source.
self.current_structure_composite.set_scale(
point_um=self.current_point_um)
self.rois.set_structure_composite(self.current_structure_composite,
self.vis)

0 comments on commit 245f3b4

Please sign in to comment.