darfix.core.dimension.AcquisitionDims#
- class darfix.core.dimension.AcquisitionDims[source]#
Bases:
object
Define the view of the data which has to be made
- get(axis)[source]#
Get Dimension at certain axis.
- Parameters:
axis (int) – axis of the dimension.
- Returns:
the requested dimension if exists.
- property ndim#
- set_size(axis, size)[source]#
Recreated new dimension with new size and same name and kind.
- Parameters:
axis (int) – axis of the dimension
size (int) – new size for the dimension
- property shape#
Shape order is reversed from the axis so the data is correctly reshaped so that the dimensions which motors move first are at the last axis of the data. This is done to mantain the axes order as they are used to in the beamlines.
- Returns:
shape of the currently defined dims