Skip to content
Snippets Groups Projects
Commit 8addd0d9 authored by Arin Wongprommoon's avatar Arin Wongprommoon
Browse files

fix(aliby): dummy tiler instantiates

WHY IS THIS CHANGE NEEDED?:
- TypeError raised when Tiler.dummy object was instantiated ('method'
  object is not iterable)

HOW DOES THE CHANGE SOLVE THE PROBLEM?:
- dummy_omero_metadata was a tuple of dicts, changed it to a dict.  this
  also makes available the .update() method of a dict.  and is also
  consistent with the datatype it should be in the return statement.

EVIDENCE THAT COMMIT WORKS:
- Tiler.dummy object can be instantiated from a parametes dict without
  errors
parent 0e0470f8
No related branches found
No related tags found
No related merge requests found
......@@ -261,14 +261,13 @@ class Tiler(StepABC):
"""
imgdmy_obj = ImageDummy(parameters)
dummy_image = imgdmy_obj.get_data_lazy()
dummy_omero_metadata = ( # Default to "tczyx" if image.dimorder is None
{
f"size_{dim}": dim_size
for dim, dim_size in zip(
imgdmy_obj.dimorder or "tczyx", dummy_image.shape
)
},
)
# Default to "tczyx" if image.dimorder is None
dummy_omero_metadata = {
f"size_{dim}": dim_size
for dim, dim_size in zip(
imgdmy_obj.dimorder() or "tczyx", dummy_image.shape
)
}
dummy_omero_metadata.update(
{
"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