From e27a0f265788fb5cb5f95b96033a2f22552101f9 Mon Sep 17 00:00:00 2001 From: "w.pomp" Date: Wed, 26 Nov 2025 17:24:48 +0100 Subject: [PATCH] - cziread: deal with missing exposure times --- .github/workflows/pytest.yml | 2 +- ndbioimage/readers/cziread.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index a0500dc..6add2ce 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/ndbioimage/readers/cziread.py b/ndbioimage/readers/cziread.py index 97c7889..2ce237a 100644 --- a/ndbioimage/readers/cziread.py +++ b/ndbioimage/readers/cziread.py @@ -646,7 +646,7 @@ class OmeParse: the_z=z, the_t=t, delta_t=delta_ts[t], - exposure_time=exposure_times[c], + exposure_time=exposure_times[min(c, len(exposure_times) - 1)] if len(exposure_times) > 0 else None, position_x=self.positions[0], position_x_unit=self.um, position_y=self.positions[1], diff --git a/pyproject.toml b/pyproject.toml index 5ec76c8..f69811f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ndbioimage" -version = "2025.10.0" +version = "2025.11.0" description = "Bio image reading, metadata and some affine registration." authors = [ { name = "W. Pomp", email = "w.pomp@nki.nl" }