Added a scientific notation option, improved some info strings.

This commit is contained in:
jupfi 2024-06-05 09:42:10 +02:00
parent 2bfea9c3aa
commit a49acc8961

View file

@ -109,7 +109,7 @@ class SimulatorModel(SpectrometerModel):
self.NOISE, self.NOISE,
self.SIMULATION, self.SIMULATION,
2, 2,
"Adds a specified level of random noise to the simulation to mimic real-world signal variations.", "Adds a specified level of noise for one average without gain. The noise is still multiplied with the receiver gain, as is the signal. The noise scales with the square root of the averages whereas the signal scales with the number of averages.",
min_value=0, min_value=0,
max_value=100, max_value=100,
slider=True, slider=True,
@ -240,6 +240,7 @@ class SimulatorModel(SpectrometerModel):
0, 0,
"The number of atoms in the sample.", "The number of atoms in the sample.",
min_value=0, min_value=0,
scientific_notation=True,
) )
self.add_setting("n_atoms", sample_n_atoms_setting) self.add_setting("n_atoms", sample_n_atoms_setting)
@ -276,7 +277,7 @@ class SimulatorModel(SpectrometerModel):
self.SAMPLE, self.SAMPLE,
43.42, 43.42,
"The gyromagnetic ratio of the samples nuclei.", "The gyromagnetic ratio of the samples nuclei.",
min_value=1, min_value=0.001,
suffix="MHz/T", suffix="MHz/T",
) )
self.add_setting("gamma", gamma_setting) self.add_setting("gamma", gamma_setting)