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,