Skip to content

Commit

Permalink
remove crop workspace (#491)
Browse files Browse the repository at this point in the history
* remove crop workspace

* pass continue anyway flags along to recalc

* remove the correct algo 😅

* forgot the continueanywayflags in a couple more places
  • Loading branch information
walshmm authored Nov 11, 2024
1 parent 1d7c1dd commit 6dd7e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ def chopNeutronData(self, inputWS: str, outputWS: str) -> None:
Target="TOF",
)

self.mantidSnapper.CropWorkspace(
"Filter the workspace within bounds",
InputWorkspace=outputWS,
OutputWorkspace=outputWS,
XMin=self.TOFPars[0],
XMax=self.TOFPars[2],
)

self.mantidSnapper.Rebin(
"Rebin in log TOF",
InputWorkspace=outputWS,
Expand Down
2 changes: 2 additions & 0 deletions src/snapred/ui/workflow/NormalizationWorkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def _specifyNormalization(self, workflowPresenter): # noqa: ARG002
focusGroup=list(self.focusGroups.items())[self.prevGroupingIndex][1],
smoothingParameter=self.prevSmoothingParameter,
crystalDBounds={"minimum": self.prevXtalDMin, "maximum": self.prevXtalDMax},
continueFlags=self.continueAnywayFlags,
)
response = self.request(path="normalization/assessment", payload=payload.json())
return response
Expand Down Expand Up @@ -259,6 +260,7 @@ def callNormalization(self, index, smoothingParameter, xtalDMin, xtalDMax):
focusGroup=list(self.focusGroups.items())[index][1],
smoothingParameter=smoothingParameter,
crystalDBounds={"minimum": xtalDMin, "maximum": xtalDMax},
continueFlags=self.continueAnywayFlags,
)
self.request(path="normalization", payload=payload.json())

Expand Down

0 comments on commit 6dd7e2c

Please sign in to comment.