Skip to content
Snippets Groups Projects
Commit 57379187 authored by pswain's avatar pswain
Browse files

change(pipeline): added OMERO_channels as input

When processing zarr files with no access to OMERO, OMERO_channels
specifies the correct channels in the correct order, which may
differ from position to position and be incorrect in the meta data,
which is for all positions.
parent bdeb1aa5
No related branches found
No related tags found
No related merge requests found
...@@ -169,13 +169,17 @@ class PipelineParameters(ParametersABC): ...@@ -169,13 +169,17 @@ class PipelineParameters(ParametersABC):
class Pipeline(ProcessABC): class Pipeline(ProcessABC):
"""Initialise and run tiling, segmentation, extraction and post-processing.""" """Initialise and run tiling, segmentation, extraction and post-processing."""
def __init__(self, parameters: PipelineParameters, store=None): def __init__(
self, parameters: PipelineParameters, store=None, OMERO_channels=None
):
"""Initialise using Pipeline parameters.""" """Initialise using Pipeline parameters."""
super().__init__(parameters) super().__init__(parameters)
if store is not None: if store is not None:
store = Path(store) store = Path(store)
# h5 file # h5 file
self.store = store self.store = store
if OMERO_channels is not None:
self.OMERO_channels = OMERO_channels
config = self.parameters.to_dict() config = self.parameters.to_dict()
self.server_info = { self.server_info = {
k: config["general"].get(k) k: config["general"].get(k)
......
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