From 7b59e0b408febb03e756e855a9ce4def553c0374 Mon Sep 17 00:00:00 2001 From: rboston628 Date: Tue, 3 Dec 2024 15:26:15 -0500 Subject: [PATCH] minimal change for step 1 --- src/snapred/backend/recipe/PixelDiffCalRecipe.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/snapred/backend/recipe/PixelDiffCalRecipe.py b/src/snapred/backend/recipe/PixelDiffCalRecipe.py index 6fce3c09d..225098493 100644 --- a/src/snapred/backend/recipe/PixelDiffCalRecipe.py +++ b/src/snapred/backend/recipe/PixelDiffCalRecipe.py @@ -86,10 +86,10 @@ def unbagGroceries(self, groceries: Dict[str, WorkspaceName]) -> None: # noqa A # the input data converted to d-spacing self.wsDSP = wng.diffCalInputDSP().runNumber(self.runNumber).build() self.convertUnitsAndRebin(self.wsTOF, self.wsDSP) - self.mantidSnapper.MakeDirtyDish( + self.mantidSnapper.CloneWorkspace( "Creating copy of initial d-spacing data", InputWorkspace=self.wsDSP, - OutputWorkspace=self.wsDSP + "_startOfPixelDiffCal", + OutputWorkspace=self.wsDSP + "_beforeCrossCor", ) if self.removeBackground: @@ -333,6 +333,10 @@ def cook(self, ingredients: Ingredients, groceries: Dict[str, str]) -> Dict[str, self.queueAlgos() logger.info(f"Pixel calibration converged. Offsets: {self.medianOffsets}") + # create for inspection + self.convertUnitsAndRebin(self.wsTOF, f"{self.wsDSP}_afterCrossCor") + self.mantidSnapper.executeQueue() + return PixelDiffCalServing( result=True, medianOffsets=self.medianOffsets,