Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
558c9869
Commit
558c9869
authored
Mar 03, 2020
by
Pierre Paleo
Browse files
[hdf5scan] Add ALIGNMENT ImageKey
parent
91bcdaf2
Pipeline
#22400
failed with stages
in 1 minute and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
558c9869
...
...
@@ -46,8 +46,9 @@ _logger = logging.getLogger(__name__)
class
ImageKey
(
_Enum
):
PROJECTION
=
0
,
FLAT_FIELD
=
1
,
ALIGNMENT
=
-
1
PROJECTION
=
0
FLAT_FIELD
=
1
DARK_FIELD
=
2
INVALID
=
3
...
...
@@ -555,7 +556,7 @@ class HDF5TomoScan(TomoScanBase):
frame
=
Frame
(
index
=
i_frame
,
url
=
url
,
image_key
=
img_key
,
rotation_angle
=
rot_a
)
if
self
.
image_key_control
is
not
None
:
is_control_frame
=
self
.
image_key_control
[
frame
.
index
]
is_control_frame
=
(
self
.
image_key_control
[
frame
.
index
]
==
ImageKey
.
ALIGNMENT
.
value
)
else
:
return_already_reach
,
delta_angle
=
is_return
(
lframe
=
frame
,
llast_proj_frame
=
last_proj_frame
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment