Commit 04a6cb57 authored by Pierre Paleo's avatar Pierre Paleo

Handle argument specific to CenterOfRotationSlidingWindow

parent ba44d1da
Pipeline #36996 failed with stages
in 4 minutes and 35 seconds
......@@ -160,6 +160,11 @@ class CORFinder:
cor_exec_kwargs = default_params.copy()
cor_exec_kwargs.update(self.cor_options or {})
cor_exec_args = self.search_methods[search_method].get("default_args", None) or []
# Specific to CenterOfRotationSlidingWindow
if cor_class == CenterOfRotationSlidingWindow:
side_param = cor_exec_kwargs.pop("side", "center")
cor_exec_args = [side_param]
#
self.logger.debug("%s(%s)" % (get_class_name(cor_class), str(cor_exec_kwargs)))
shift = cor_finder.find_shift(
self.radios[0],
......
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