NxObject
- class nexus.NxObject(*args, **kwargs)
Abstract class for each object in the beam path. Base class for
Analyzer
,Sample
andFixedObject
. Do not use anNxObject
, use the derived classes.Changed in version 2.0.0: changed from old
Sample
class toBasicSample
.- object_id
Internal object identifier. object_matrix (list): n-dimensional array of 2x2 complex matrices, where n is the number of detuning points id (string): User identifier.
- Type:
NxObjectId
- ElectronicAmplitude(energy)
- Args:
energy (float): Energy for the calculation of the scattering factor
- Returns:
Electronic scattering factor
- Return type:
complex
- ElectronicAmplitudeMatrix(energy)
Calculates the detuning-dependent complex 2x2 object matrix.
- Parameters:
energy (float) – Energy for the calculation of the scattering factor
- Returns:
Complex 2x2 matrix.
- Return type:
list
- ObjectMatrix(isotope, detuning, calc_transitions)
Calculates the detuning-dependent complex 2x2 object matrix.
- Parameters:
isotope (
MoessbauerIsotope
) – Moessbauer isotope of the experiment.detuning (list or ndarray) – n-dimensional array with detuning values.
calc_transitions (bool) – Set to
True
for calculations of the nuclear transitions in the object.
- Returns:
List of complex 2x2 matrices.
- Return type:
list