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

add failback to stitch when MM metadata bug

parent fb95e7c0
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,11 @@ def stitch(images, force):
# Do we need to scale z with down scaling
scale_z = True
if 'IHR' in meta['Roi1/Tile0'][0,0,0]['metadata']['Core-Focus']:
if 'core-focus' in meta['Roi1/Tile0'][0,0,0]['metadata'] and 'IHR' in meta['Roi1/Tile0'][0,0,0]['metadata']['Core-Focus']:
scale_z = False
# Add a failback when metadata are missing
if meta['Summary'].startswith('EX'):
scale_z = False
if force:
......
......@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "DITB"
version = "20240701"
version = "20240701rc2"
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