darfix.core.dimension.AcquisitionDims#

class darfix.core.dimension.AcquisitionDims[source]#

Bases: object

Define the view of the data which has to be made

add_dim(axis, dim)[source]#
clear()[source]#
from_dict(_dict)[source]#

Convert dictionary of dimensions.

get(axis)[source]#

Get Dimension at certain axis.

Parameters:

axis (int) – axis of the dimension.

Returns:

the requested dimension if exists.

get_names()[source]#

Get list with all the names of the dimensions.

Returns:

array_like of strings

property ndim#
remove_dim(axis)[source]#
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

to_dict()[source]#