Skip to content

Commit

Permalink
minimal change for step 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rboston628 committed Dec 3, 2024
1 parent 00a1099 commit 7b59e0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/snapred/backend/recipe/PixelDiffCalRecipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7b59e0b

Please sign in to comment.