NxObject

class nexus.NxObject(*args, **kwargs)

Abstract class for each object in the beam path. Base class for Analyzer, Sample and FixedObject. Do not use an NxObject, use the derived classes.

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)
Parameters:

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

class nexus.VectorNxObject(*args)

List of NxObject objects.