mirror of
https://github.com/nqrduck/quackseq-simulator.git
synced 2025-01-02 18:08:07 +00:00
Added a scientific notation option, improved some info strings.
This commit is contained in:
parent
2bfea9c3aa
commit
a49acc8961
1 changed files with 3 additions and 2 deletions
|
@ -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 sample’s nuclei.",
|
"The gyromagnetic ratio of the sample’s 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)
|
||||||
|
|
Loading…
Reference in a new issue