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__) ...@@ -46,8 +46,9 @@ _logger = logging.getLogger(__name__)
class ImageKey(_Enum): class ImageKey(_Enum):
PROJECTION = 0, ALIGNMENT = -1
FLAT_FIELD = 1, PROJECTION = 0
FLAT_FIELD = 1
DARK_FIELD = 2 DARK_FIELD = 2
INVALID = 3 INVALID = 3
...@@ -555,7 +556,7 @@ class HDF5TomoScan(TomoScanBase): ...@@ -555,7 +556,7 @@ class HDF5TomoScan(TomoScanBase):
frame = Frame(index=i_frame, url=url, image_key=img_key, frame = Frame(index=i_frame, url=url, image_key=img_key,
rotation_angle=rot_a) rotation_angle=rot_a)
if self.image_key_control is not None: 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: else:
return_already_reach, delta_angle = is_return(lframe=frame, return_already_reach, delta_angle = is_return(lframe=frame,
llast_proj_frame=last_proj_frame, llast_proj_frame=last_proj_frame,
......
Supports Markdown
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