Dimension

class scanpointgenerator.Dimension(generator)[source]

An unrolled set of generators joined by excluders. Represents a single dimension within a scan.

axes = None

list(int) – Unrolled axes within the dimension

size = None

int – Size of the dimension

upper = None

list(float) – Upper bound for the dimension

lower = None

list(float) – Lower bound for the dimension

get_positions(axis)[source]

Retrieve the positions for a given axis within the dimension.

Parameters:axis (str) – axis to get positions for
Returns:Array of positions
Return type:Positions (np.array)