Started updating to new settings view.

This commit is contained in:
jupfi 2024-04-11 17:11:31 +02:00
parent 0a2838dbb9
commit 705a129019

View file

@ -80,6 +80,9 @@ class SimulatorModel(BaseSpectrometerModel):
self.NUMBER_ISOCHROMATS, self.NUMBER_ISOCHROMATS,
1000, 1000,
"Number of isochromats used for the simulation. This influences the computation time.", "Number of isochromats used for the simulation. This influences the computation time.",
min_value=0,
max_value=10000,
spin_box=(True, False),
) )
self.add_setting(number_of_isochromats_setting, self.SIMULATION) self.add_setting(number_of_isochromats_setting, self.SIMULATION)
@ -102,6 +105,9 @@ class SimulatorModel(BaseSpectrometerModel):
self.NOISE, self.NOISE,
2, 2,
"Noise", "Noise",
min_value=0,
max_value=100,
spin_box=(True, False),
) )
self.add_setting(noise_setting, self.SIMULATION) self.add_setting(noise_setting, self.SIMULATION)
@ -163,6 +169,9 @@ class SimulatorModel(BaseSpectrometerModel):
self.TEMPERATURE, self.TEMPERATURE,
300, 300,
"Temperature", "Temperature",
min_value=0.1,
max_value=400,
spin_box=(True, True),
) )
self.add_setting(temperature_setting, self.EXPERIMENTAL_Setup) self.add_setting(temperature_setting, self.EXPERIMENTAL_Setup)