Skip to content

Commit cd5bdba

Browse files
committed
Fixed Slider error
1 parent ed436b2 commit cd5bdba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

napari_cellseg3d/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def slider_value(self, value: int):
581581
f"The value for the slider ({value}) cannot be out of ({self.minimum()};{self.maximum()}) "
582582
)
583583

584-
self.setValue(value)
584+
self.setValue(int(value))
585585

586586
divided = value / self._divide_factor
587587
if self._divide_factor == 1.0:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ build-backend = "setuptools.build_meta"
3535

3636
[tool.ruff]
3737
# Never enforce `E501` (line length violations).
38-
ignore = ["E501"]
38+
ignore = ["E501", "E741"]
3939

4040
[tool.black]
4141
line-length = 79

0 commit comments

Comments
 (0)