We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bfc0cc commit 96154e4Copy full SHA for 96154e4
volumina/volumeEditorWidget.py
@@ -332,9 +332,9 @@ def _updateTileWidth(self):
332
self.editor.setTileWidth(tile_width)
333
334
def _getTileWidthConfigKeyDefault(self):
335
- singletons_spacial = [True for dim in self.editor.posModel.shape if dim == 1]
336
- assert len(singletons_spacial) in range(2)
337
- if len(singletons_spacial) == 0:
+ singletons_spacial = sum(1 for dim in self.editor.posModel.shape if dim == 1)
+ assert singletons_spacial in range(2)
+ if singletons_spacial == 0:
338
# 3D data
339
key = "tileWidth3D"
340
default = 256
0 commit comments