Skip to content
Snippets Groups Projects
Commit 7206793a authored by Alán Muñoz's avatar Alán Muñoz
Browse files

refactor(Image): Rename ImageLocal->ImageLocalOME

parent 522a0bf9
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ from typing import Union ...@@ -7,7 +7,7 @@ from typing import Union
import omero import omero
from agora.io.bridge import BridgeH5 from agora.io.bridge import BridgeH5
from aliby.io.image import ImageLocal from aliby.io.image import ImageLocalOME
from aliby.io.omero import BridgeOmero from aliby.io.omero import BridgeOmero
...@@ -42,7 +42,7 @@ class DatasetLocal: ...@@ -42,7 +42,7 @@ class DatasetLocal:
@property @property
def date(self): def date(self):
return ImageLocal(list(self.get_images().values())[0]).date return ImageLocalOME(list(self.get_images().values())[0]).date
def get_images(self): def get_images(self):
return {f.name: str(f) for f in self.fpath.glob("*.tif")} return {f.name: str(f) for f in self.fpath.glob("*.tif")}
......
...@@ -62,6 +62,7 @@ class BaseLocalImage(ABC): ...@@ -62,6 +62,7 @@ class BaseLocalImage(ABC):
return self return self
def format_data(self, img): def format_data(self, img):
# Format image using x and y size from metadata.
self._formatted_img = da.rechunk( self._formatted_img = da.rechunk(
img, img,
...@@ -207,7 +208,7 @@ class ImageDir(BaseLocalImage): ...@@ -207,7 +208,7 @@ class ImageDir(BaseLocalImage):
- One folders per position. - One folders per position.
- Images are flat. - Images are flat.
- Channel, Time, z-stack and the others are determined by filenames. - Channel, Time, z-stack and the others are determined by filenames.
- Provides Dimorder as TCZYX - Provides Dimorder as it is set in the filenames, or expects order during instatiation
""" """
def __init__(self, path: t.Union[str, PosixPath]): def __init__(self, path: t.Union[str, PosixPath]):
......
...@@ -30,7 +30,7 @@ from skimage.registration import phase_cross_correlation ...@@ -30,7 +30,7 @@ from skimage.registration import phase_cross_correlation
from agora.abc import ParametersABC, ProcessABC from agora.abc import ParametersABC, ProcessABC
from agora.io.writer import BridgeH5 from agora.io.writer import BridgeH5
from aliby.io.image import Image, ImageLocal, ImageDir from aliby.io.image import Image, ImageLocalOME, ImageDir
from aliby.tile.traps import segment_traps from aliby.tile.traps import segment_traps
...@@ -262,7 +262,7 @@ class Tiler(ProcessABC): ...@@ -262,7 +262,7 @@ class Tiler(ProcessABC):
@classmethod @classmethod
def from_h5( def from_h5(
cls, cls,
image: t.Union[Image, ImageLocal, ImageDir], image: t.Union[Image, ImageLocalOME, ImageDir],
filepath: t.Union[str, PosixPath], filepath: t.Union[str, PosixPath],
parameters: TilerParameters = None, parameters: TilerParameters = None,
): ):
......
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