magtomo.Experiment.Experiment#

class Experiment(magnetization, rotations, pol=1j, order=1)#

Bases: object

Defines 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

calculate_sinogram

Calculates the sinogram.

orientation_to_tensor

plot_sinogram

Plots the calculated sinogram.

tensor_to_orientation

Attributes

magnetization

The magnetic configuration of the sample.

order

The interpolation order for performing rotations.

pol

The polarization of the incident beam.

rotations

The stack of measured orientation described by rotation matrices.

sinogram

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.