Skip to content
Snippets Groups Projects
Commit 5919b052 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Shorthand getters for data dimensions

parent 3a88a033
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,22 @@ class GenericImageDataAccessor(ABC):
c = int(channel)
return InMemoryDataAccessor(self.data[:, :, c:(c+1), :])
@property
def dtype(self):
return self.data.dtype
@property
def hw(self):
"""
Get data height and width as a tuple
:return: tuple of (Y, X) dimensions
"""
return self.shape_dict['Y'], self.shape_dict['X']
@property
def nz(self):
return self.shape_dict['Z']
@property
def data(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment