Skip to content
Snippets Groups Projects
Commit 91891f60 authored by Hugo chauvet's avatar Hugo chauvet
Browse files

correct a bug: need to add white position in filter excitation normalisation, if bug

parent 42c26df2
Branches
Tags
No related merge requests found
......@@ -362,7 +362,7 @@ def correct_dark_white(images: str, dark: str = '', white: str = '' ,
# Need to find the visible to put it's power to one
i_vis=0
for chan in range(diff_im_darks.shape[2]):
if 'vis' not in img_ch_names[chan].lower():
if 'vis' in img_ch_names[chan].lower():
i_vis = chan
break
print(f'Visible power set to 1 on position {i_vis}')
......
......@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "DITB"
version = "20250115rc2"
version = "20250115rc3"
readme = "README.md"
requires-python = ">=3.11"
authors = [{ name = "Hugo Chauvet", email = "hugo.chauvet@synchrotron-soleil.fr" }]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment