Commit 7793e7cd authored by payno's avatar payno

[core] add get(axis) function for :class:`AcquisitionDims`

parent ad013952
......@@ -369,6 +369,18 @@ class AcquisitionDims(object):
max_index = max(max_index, index)
return max(max_index, 0) + 1
def get(self, axis):
:param int axis: axis for which we want the dimension definition
:return: the requested dim if exists
assert type(axis) is int
if axis in self.__dims:
return self.__dims[axis]
return None
def shape(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment