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

add support for CellsLinear

parent 6079eed3
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ from extraction.core.functions.utils import depth ...@@ -27,7 +27,7 @@ from extraction.core.functions.utils import depth
from agora.abc import ProcessABC, ParametersABC from agora.abc import ProcessABC, ParametersABC
from agora.io.writer import Writer, load_attributes from agora.io.writer import Writer, load_attributes
from agora.io.cells import Cells from agora.io.cells import CellsLinear
from aliby.tile.tiler import Tiler from aliby.tile.tiler import Tiler
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
...@@ -127,10 +127,6 @@ class Extractor(ProcessABC): ...@@ -127,10 +127,6 @@ class Extractor(ProcessABC):
def from_img(cls, parameters: ExtractorParameters, store: str, img_meta: tuple): def from_img(cls, parameters: ExtractorParameters, store: str, img_meta: tuple):
return cls(parameters, store=store, tiler=Tiler(*img_meta)) return cls(parameters, store=store, tiler=Tiler(*img_meta))
# @classmethod
# def from_store(cls, parameters: ExtractorParameters, store: str, img_meta: tuple):
# return cls(parameters, store=store, tiler=Tiler(*img_meta))
@property @property
def channels(self): def channels(self):
if not hasattr(self, "_channels"): if not hasattr(self, "_channels"):
...@@ -324,7 +320,7 @@ class Extractor(ProcessABC): ...@@ -324,7 +320,7 @@ class Extractor(ProcessABC):
ch_tree = {ch: v for ch, v in tree.items() if ch != "general"} ch_tree = {ch: v for ch, v in tree.items() if ch != "general"}
tree_chs = (*ch_tree,) tree_chs = (*ch_tree,)
cells = Cells.hdf(self.local) cells = CellsLinear(self.local)
# labels # labels
if labels is None: if labels is None:
...@@ -421,7 +417,6 @@ class Extractor(ProcessABC): ...@@ -421,7 +417,6 @@ class Extractor(ProcessABC):
""" """
Returns the image from a correct source, either raw or bgsub Returns the image from a correct source, either raw or bgsub
:channel: str name of channel to get :channel: str name of channel to get
:img: ndarray (trap_id, channel, tp, tile_size, tile_size, n_zstacks) of standard channels :img: ndarray (trap_id, channel, tp, tile_size, tile_size, n_zstacks) of standard channels
:channels: List of channels :channels: List of channels
......
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