Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DITB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DISCO Beamline
DITB
Commits
39ee8611
Commit
39ee8611
authored
Jul 1, 2024
by
Hugo chauvet
Browse files
Options
Downloads
Patches
Plain Diff
add failback to stitch when MM metadata bug
parent
fb95e7c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ditb/commands/stitch.py
+5
-1
5 additions, 1 deletion
ditb/commands/stitch.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
6 additions
and
2 deletions
ditb/commands/stitch.py
+
5
−
1
View file @
39ee8611
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
39ee8611
...
...
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name
=
"DITB"
version
=
"20240701"
version
=
"20240701
rc2
"
readme
=
"README.md"
requires-python
=
">
=
3.11
"
authors
=
[
{
name
=
"Hugo Chauvet"
,
email
=
"hugo.chauvet@synchrotron-soleil.fr"
}
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment