magneticScattering.scatter#

Functions

en2wave

Converts energy in eV to wavelength in m.

pauli

Returns an array of the identity and three Pauli matrices.

vec2np

Converts a scalar or array value to an appropriately-sized numpy array.

Classes

Beam

Describes the properties of the beam.

Geometry

Defines the geometry of the experiment.

Sample

Describes the sample properties.

Scatter

Initializes the Scatter class and calculates the scattering pattern.