`CalibrateSingle` doesn't allow to loop over multiple values of max_rings so it cannot be used for sequentially refining multiple number of rings
Originally posted as comment !153 (comment 323533)
Hi! Would it be possible to add to this merge to pass 'image' as an output? I started to use it for sequentially refining with multiple number of rings.
diff --git a/src/ewoksxrpd/tasks/calibrate.py b/src/ewoksxrpd/tasks/calibrate.py
index bce821a..8260466 100644
--- a/src/ewoksxrpd/tasks/calibrate.py
+++ b/src/ewoksxrpd/tasks/calibrate.py
@@ -37,7 +37,7 @@ class CalibrateSingle(
TaskWithDataAccess,
input_names=["image", "detector", "calibrant", "geometry", "energy"],
optional_input_names=["detector_config", "fixed", "max_rings", "robust"],
- output_names=["geometry", "energy", "detector", "detector_config", "rings", "chi2"],
+ output_names=["geometry", "energy", "detector", "detector_config", "rings", "chi2", "image"],
):
"""Single distance and energy calibration."""
@@ -84,6 +84,7 @@ class CalibrateSingle(
self.outputs.detector = detector
self.outputs.detector_config = detector_config
self.outputs.rings = rings
+ self.outputs.image = self.inputs.image
if setup.geometry_refinement.data.ndim != 2:
self.outputs.chi2 = float("nan")
else: