Skip to content

Commit

Permalink
Refs #4472. Added warning if binning parameters seem strange.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Apr 26, 2012
1 parent 8edd865 commit 5516a32
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,10 @@ def _focus(self, wksp, calib, info, filterLogs=None, preserveEvents=True,
if len(cropkwargs) > 0:
CropWorkspace(InputWorkspace=wksp, OutputWorkspace=wksp, **cropkwargs)
MaskDetectors(Workspace=wksp, MaskedWorkspace=self._instrument + "_mask")
if not info.has_dspace:
if info.has_dspace:
if binning[0] > 100:
self.log().warning("Binning data oddly for d-spacing: %s" % str(binning))
else:
Rebin(InputWorkspace=wksp, OutputWorkspace=wksp, Params=binning)
AlignDetectors(InputWorkspace=wksp, OutputWorkspace=wksp, OffsetsWorkspace=self._instrument + "_offsets")
LRef = self.getProperty("UnwrapRef")
Expand Down

0 comments on commit 5516a32

Please sign in to comment.