Skip to content

Commit

Permalink
fix: extend exposure widget range (#222)
Browse files Browse the repository at this point in the history
extend exposure
  • Loading branch information
tlambert03 authored Oct 12, 2023
1 parent 81cb02d commit 54a7c33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pymmcore_widgets/_exposure_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def __init__(
self.label.setMaximumWidth(30)
self.spinBox = QDoubleSpinBox()
self.spinBox.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.spinBox.setMinimum(1.0)
self.spinBox.setMaximum(100000.0)
self.spinBox.setMinimum(0.001)
self.spinBox.setMaximum(999999.0)
self.spinBox.setKeyboardTracking(False)
layout = QHBoxLayout()
layout.addWidget(self.spinBox)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_exposure_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ def test_exposure_widget(qtbot: QtBot, global_mmcore: CMMCorePlus):
# reset the camera to a working one
global_mmcore.setProperty("Core", "Camera", "Camera")
with qtbot.wait_signal(global_mmcore.events.exposureChanged):
wdg.spinBox.setValue(12)
assert global_mmcore.getExposure() == 12
wdg.spinBox.setValue(0.1)
assert global_mmcore.getExposure() == 0.1

0 comments on commit 54a7c33

Please sign in to comment.