Commit 558c9869 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

[hdf5scan] Add ALIGNMENT ImageKey

parent 91bcdaf2
Pipeline #22400 failed with stages
in 1 minute and 6 seconds
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment