From e5eac07b7bb412c6d9c9518c596c6fe92cf09489 Mon Sep 17 00:00:00 2001 From: "w.pomp" Date: Mon, 26 Jan 2026 17:22:11 +0100 Subject: [PATCH] - bugfix --- ndbioimage/transforms.py | 15 +++++++-------- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ndbioimage/transforms.py b/ndbioimage/transforms.py index 46b2a3d..1ffe73a 100644 --- a/ndbioimage/transforms.py +++ b/ndbioimage/transforms.py @@ -212,14 +212,13 @@ class Transforms(dict): else: main_channel = goodch[0] transform = Transform() - if not good_and_untrans: - matrix = transform.matrix - if default_transform is None: - matrix[0, 0] = 0.86 - else: - for i, t in zip(([0, 0], [0, 1], [1, 0], [1, 1], [0, 2], [1, 2]), default_transform): - matrix[i] = t - transform.matrix = matrix + matrix = transform.matrix + if default_transform is None: + matrix[0, 0] = 0.86 + else: + for i, t in zip(((0, 0), (0, 1), (1, 0), (1, 1), (0, 2), (1, 2)), default_transform): + matrix[i] = t + transform.matrix = matrix transforms = Transforms() for c in tqdm(goodch, desc="Calculating channel transforms"): # noqa if c == main_channel: diff --git a/pyproject.toml b/pyproject.toml index a5193d4..add0b61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ndbioimage" -version = "2026.1.1" +version = "2026.1.2" description = "Bio image reading, metadata and some affine registration." authors = [ { name = "W. Pomp", email = "w.pomp@nki.nl" }