This commit is contained in:
w.pomp
2026-01-26 17:22:11 +01:00
parent 8ff52f5af5
commit e5eac07b7b
2 changed files with 8 additions and 9 deletions

View File

@@ -212,14 +212,13 @@ class Transforms(dict):
else: else:
main_channel = goodch[0] main_channel = goodch[0]
transform = Transform() transform = Transform()
if not good_and_untrans: matrix = transform.matrix
matrix = transform.matrix if default_transform is None:
if default_transform is None: matrix[0, 0] = 0.86
matrix[0, 0] = 0.86 else:
else: for i, t in zip(((0, 0), (0, 1), (1, 0), (1, 1), (0, 2), (1, 2)), default_transform):
for i, t in zip(([0, 0], [0, 1], [1, 0], [1, 1], [0, 2], [1, 2]), default_transform): matrix[i] = t
matrix[i] = t transform.matrix = matrix
transform.matrix = matrix
transforms = Transforms() transforms = Transforms()
for c in tqdm(goodch, desc="Calculating channel transforms"): # noqa for c in tqdm(goodch, desc="Calculating channel transforms"): # noqa
if c == main_channel: if c == main_channel:

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "ndbioimage" name = "ndbioimage"
version = "2026.1.1" version = "2026.1.2"
description = "Bio image reading, metadata and some affine registration." description = "Bio image reading, metadata and some affine registration."
authors = [ authors = [
{ name = "W. Pomp", email = "w.pomp@nki.nl" } { name = "W. Pomp", email = "w.pomp@nki.nl" }