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

fix(imagedummy): fix #62, make dimorder a prop

- Change the order to match tczyx where appropriate
- Make name and dimorder properties for Imagedummy
parent d1d46476
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ Image: Loads images and registers them. ...@@ -5,7 +5,7 @@ Image: Loads images and registers them.
Image instances loads images from a specified directory into an object that Image instances loads images from a specified directory into an object that
also contains image properties such as name and metadata. Pixels from images also contains image properties such as name and metadata. Pixels from images
are stored in dask arrays; the standard way is to store them in 5-dimensional are stored in dask arrays; the standard way is to store them in 5-dimensional
arrays: T(ime point), C(channel), Z(-stack), X, Y. arrays: T(ime point), C(channel), Z(-stack), Y, X.
This module consists of a base Image class (BaseLocalImage). ImageLocalOME This module consists of a base Image class (BaseLocalImage). ImageLocalOME
handles local OMERO images. ImageDir handles cases in which images are split handles local OMERO images. ImageDir handles cases in which images are split
...@@ -81,8 +81,8 @@ class BaseLocalImage(ABC): ...@@ -81,8 +81,8 @@ class BaseLocalImage(ABC):
1, 1,
1, 1,
1, 1,
self._meta["size_x"],
self._meta["size_y"], self._meta["size_y"],
self._meta["size_x"],
), ),
) )
return self._rechunked_img return self._rechunked_img
...@@ -212,9 +212,11 @@ class ImageDummy(BaseLocalImage): ...@@ -212,9 +212,11 @@ class ImageDummy(BaseLocalImage):
) # 5 z-stacks ) # 5 z-stacks
return img return img
@property
def name(self): def name(self):
pass pass
@property
def dimorder(self): def dimorder(self):
pass pass
......
...@@ -112,7 +112,7 @@ class PipelineParameters(ParametersABC): ...@@ -112,7 +112,7 @@ class PipelineParameters(ParametersABC):
ntps_to_eval=5, ntps_to_eval=5,
), ),
logfile_level="INFO", logfile_level="INFO",
logstream_level="WARNING", use_explog=True,
) )
} }
...@@ -691,7 +691,9 @@ class Pipeline(ProcessABC): ...@@ -691,7 +691,9 @@ class Pipeline(ProcessABC):
except Exception: except Exception:
pass pass
meta.run() if config["general"]["use_explog"]:
meta.run()
meta.add_fields( # Add non-logfile metadata meta.add_fields( # Add non-logfile metadata
{ {
"aliby_version": version("aliby"), "aliby_version": version("aliby"),
......
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