Modules and Libraries

Nexus provides a couple of modules that add some basic functionalities and some libraries with predefined object definitions.

Modules

Constants

Module nx.constants with mathematical constants (nx.constants.inf, …), physical constants, like electron mass, speed of light, and so on, e.g. nx.constants.NuclearMagneton. See constants.

Conversions

Module nx.conversions with functions to convert various properties into different units, e.g. nx.conversions.VelocityToGamma() or nx.conversions.WtToAt(). See conversions.

Data

Module nx.data with functions to load and manipulate typical data sets, e.g. nx.data.load(). See data and Data processing tutorial section.

Euler

Module nx.euler with functions to work with Euler angles, e.g. nx.euler.TransformationMatrixToZYZEuler(). See euler.

Theory

Module nx.theory with functions for theoretical calculations, e.g. nx.theory.RecoilEnergy(). See theory.

Added in version 1.0.3.

Tools

Module nx.tools with some useful functions. See tools.

Added in version 1.2.0.

Libraries

Moessbauer

Library nx.lib.moessbauer with predefined MoessbauerIsotopes. The naming convention is ElementMassnumber e.g. nx.lib.moessbauer.Ir193. See moessbauer.

Energy

Library nx.lib.energy with predefined transition energies. For nuclear transitions the naming convention is ElementMassnumber e.g. nx.lib.energy.Eu151. For atomic transition it is ElementTransitionname e.g. nx.lib.energy.MoKalpha. See energy.

Material

Library nx.lib.material with predefined Materials. For compounds and alloys the naming convention is Element1Relativeweight1… e.g. nx.lib.energy.Al2O3. For isotope enriched materials with typically 95% enrichment the conventions is Material_enriched e.g. nx.lib.energy.Fe_enriched. See material.

Distributions

Library nx.lib.distribution with predefined Distributions. A variety of different distributions are included, e.g. nx.lib.distribution.Log(). See distribution.

Residuals

Library nx.lib.residuals with predefined Residuals. A couple of different residual implementations are included, e.g. nx.lib.residual.Sqrt(). See residual.

Notebooks

tools - nb_tools.ipynb.

Have a look to the API Reference for more information.