From 298830d17149d1d84193d3357bf74421fde70f6d Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Thu, 12 Oct 2023 08:09:45 -0400 Subject: [PATCH] extend exposure --- src/pymmcore_widgets/_exposure_widget.py | 4 ++-- tests/test_exposure_widget.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pymmcore_widgets/_exposure_widget.py b/src/pymmcore_widgets/_exposure_widget.py index 07b42276a..7191bdf9c 100644 --- a/src/pymmcore_widgets/_exposure_widget.py +++ b/src/pymmcore_widgets/_exposure_widget.py @@ -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) diff --git a/tests/test_exposure_widget.py b/tests/test_exposure_widget.py index 3e496b972..2c5ecbac0 100644 --- a/tests/test_exposure_widget.py +++ b/tests/test_exposure_widget.py @@ -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