Skip to content

Commit

Permalink
- Make layers optional in czi metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wim Pomp committed Mar 8, 2024
1 parent 8a66c57 commit b5c3083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ndbioimage/readers/cziread.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def def_list(item):
model.Plane(the_c=c, the_z=z, the_t=t, delta_t=delta_ts[t], exposure_time=exposure_times[c]))

idx = 0
for layer in metadata.find("Layers") or []:
for layer in [] if (ml := metadata.find("Layers")) is None else ml:
rectangle = layer.find("Elements").find("Rectangle")
if rectangle is not None:
geometry = rectangle.find("Geometry")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ndbioimage"
version = "2024.2.0"
version = "2024.3.0"
description = "Bio image reading, metadata and some affine registration."
authors = ["W. Pomp <w.pomp@nki.nl>"]
license = "GPLv3"
Expand Down

0 comments on commit b5c3083

Please sign in to comment.