Skip to content

Commit

Permalink
minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amichaut committed Jun 21, 2024
1 parent e9cb2bd commit 733a46d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/napari_stitcher/_loader_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_tiles_pos(self):
"""

# get mosaic parameters assuming all tiles have the same size
l0 = self.viewer.layers[0]
l0 = self.viewer.layers[0] # !!! add a test if all layers dont have the same size
#dims = viewer_utils.get_layer_dims(l0, self.viewer)
#sdims = [dim for dim in dims if dim in ['x', 'y', 'z']] # spatial dimensions
# for now get tile size assuming that y and x are the last dimensions
Expand Down
2 changes: 2 additions & 0 deletions src/napari_stitcher/_stitcher_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ def load_metadata(self):
self.times_slider.min = -1
self.times_slider.max = len(reference_sim.coords['t']) - 1
self.times_slider.value = self.times_slider.min, self.times_slider.max
else:
print('No time dimension in data')

if 'c' in reference_sim.coords.keys():
self.reg_ch_picker.enabled = True
Expand Down

0 comments on commit 733a46d

Please sign in to comment.