magtomo.Experiment.Experiment#
- class Experiment(magnetization, rotations, pol=1j, order=1)#
Bases:
objectDefines an experimental setup for performing vector or orientation tomography.
- Parameters:
- magnetizationnp.ndarray
The magnetic configuration to calculate projections from.
- rotationsnp.ndarray
Stack of rotation matrices describing the sample orientations that were measured; shaped (n, 3, 3).
- polarray_like (optional)
Single polarization used for all projections, stack of polarizations matching the number of projections or stack of polarization pairs. Linear polarization represented using values from 0 to 180 (in degrees). Circular left and right polarization represented using complex ±1j.
- orderint
The interpolation order (0-5) for performing rotations.
Methods
Calculates the sinogram.
orientation_to_tensorPlots the calculated sinogram.
tensor_to_orientationAttributes
The magnetic configuration of the sample.
The interpolation order for performing rotations.
The polarization of the incident beam.
The stack of measured orientation described by rotation matrices.
The calculated sinogram.
- calculate_sinogram()#
Calculates the sinogram.
- property magnetization#
The magnetic configuration of the sample.
- property order#
The interpolation order for performing rotations.
- plot_sinogram(cmap='Spectral')#
Plots the calculated sinogram.
- property pol#
The polarization of the incident beam.
- property rotations#
The stack of measured orientation described by rotation matrices.
- property sinogram#
The calculated sinogram.