Fixed bug with missing readout scheme, corrected information about atom setting.

This commit is contained in:
jupfi 2024-06-11 17:44:20 +02:00
parent 7e954f05e7
commit bb63d6908a
2 changed files with 4 additions and 2 deletions

View file

@ -39,6 +39,8 @@ class SimulatorController(SpectrometerController):
# Empty measurement object
measurement_data = None
readout_scheme = None
for cycle in range(number_phasecycles):
sample = self.get_sample_from_settings()

View file

@ -38,7 +38,7 @@ class SimulatorModel(SpectrometerModel):
# Sample settings, this will be done in a separate module later on
SAMPLE_NAME = "Name"
NUMBER_ATOMS = "Number of atoms"
NUMBER_ATOMS = "Number of atoms per unit volume (1/m^3)"
DENSITY = "Density (g/cm^3)"
MOLAR_MASS = "Molar mass (g/mol)"
RESONANT_FREQUENCY = "Resonant freq. (MHz)"
@ -238,7 +238,7 @@ class SimulatorModel(SpectrometerModel):
self.NUMBER_ATOMS,
self.SAMPLE,
0,
"The number of atoms in the sample.",
"The number of atoms per unit volume of the sample (1/m^3). If this value is zero the molar mass and density will be used for calculation of the atoms per unit volume. If this value is not zero the molar mass and density",
min_value=0,
scientific_notation=True,
)