From 3cf8000389afbf221ea2eb657889e240e480d148 Mon Sep 17 00:00:00 2001 From: jupfi Date: Wed, 5 Jun 2024 09:43:20 +0200 Subject: [PATCH] Added a scientific notation argument. --- src/quackseq/spectrometer/spectrometer_settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/quackseq/spectrometer/spectrometer_settings.py b/src/quackseq/spectrometer/spectrometer_settings.py index d0a8100..8093725 100644 --- a/src/quackseq/spectrometer/spectrometer_settings.py +++ b/src/quackseq/spectrometer/spectrometer_settings.py @@ -146,6 +146,7 @@ class IntSetting(NumericalSetting): max_value : The maximum value of the setting slider : If the setting should be displayed as a slider (only in the GUI not used in this GUI) suffix : The suffix that is added to the value of the QSpinBox + scientific_notation : If the value should be displayed in scientific notation """ def __init__( @@ -158,11 +159,13 @@ class IntSetting(NumericalSetting): max_value=None, slider=False, suffix="", + scientific_notation=False, ) -> None: """Create a new int setting.""" super().__init__(name, category, description, default, min_value, max_value) self.slider = slider self.suffix = suffix + self.scientific_notation = scientific_notation @property def value(self):