Experiment¶
Definition of an experiment, structure to setup experimental parameters and measurements in STRATAGem.
-
stratagemtools.experiment.
LINE_KA
= 0¶ X-ray line \(\text{K}\alpha\)
-
stratagemtools.experiment.
LINE_KB
= 1¶ X-ray line \(\text{K}\beta\)
-
stratagemtools.experiment.
LINE_LA
= 2¶ X-ray line \(\text{L}\alpha\)
-
stratagemtools.experiment.
LINE_LB
= 3¶ X-ray line \(\text{L}\beta\)
-
stratagemtools.experiment.
LINE_MA
= 4¶ X-ray line \(\text{M}\alpha\)
-
stratagemtools.experiment.
LINE_MB
= 5¶ X-ray line \(\text{M}\beta\)
-
class
stratagemtools.experiment.
Experiment
(z, line, energy_eV, kratio=0.0, standard='', analyzed=True)¶ Object to store experimental parameters and measurements. Once created an experiment object is immutable.
Parameters: - z (
int
) – atomic number - line (
int
) –X-ray characteristic line, either
Note that no other X-ray lines are supported.
- energy_eV (
float
) – beam energy (in eV) - kratio (
float
) – measured k-ratio (optional) - standard –
three options
- empty string for pure standard (e.g.
Fe
) - standard name which correspond to the filename of the standard
saved in the standard directory
(see
Stratagem.standard_directory
) - a
Sample
- empty string for pure standard (e.g.
- analyzed (
bool
) – whether to use this experiment in the calculations
-
is_analyzed
()¶ Whether to use this experiment in the calculations.
-
z
¶ Returns the atomic number.
-
line
¶ Returns the x-ray characteristic line.
-
energy_eV
¶ Return the beam energy (in eV).
-
kratio
¶ Returns the measured k-ratio or
0.0
if no k-ratio was measured.
-
standard
¶ REturns the standard.
- z (