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

Convenience property to find smallest and larges patches

parent 3a6fa831
No related branches found
No related tags found
No related merge requests found
...@@ -451,6 +451,14 @@ class PatchStack(InMemoryDataAccessor): ...@@ -451,6 +451,14 @@ class PatchStack(InMemoryDataAccessor):
else: else:
return self.data[:, :, :, 0, :] return self.data[:, :, :, 0, :]
@property
def smallest(self):
return np.array([p.shape for p in self.get_list()]).min(axis=0),
@property
def largest(self):
return np.array([p.shape for p in self.get_list()]).max(axis=0)
def export_pyxcz(self, fpath: Path): def export_pyxcz(self, fpath: Path):
tzcyx = np.moveaxis( tzcyx = np.moveaxis(
self.pyxcz, # yxcz self.pyxcz, # yxcz
......
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