Skip to content

Commit

Permalink
Re #4303 tweak offset pars
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Feb 3, 2012
1 parent 81897a0 commit 7734a97
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def PyInit(self):
Description="Positive is linear bins, negative is logarithmic")
self.declareProperty("QMin", 0.001, Description="Minimum Q-value")
self.declareProperty("QStep", 0.001, Description="Step-size in Q. Enter a negative value to get a log scale.")
self.declareProperty("AngleOffset", "", Description="Angle offset (rad)")
self.declareProperty("AngleOffsetError", "", Description="Angle offset error (rad)")
self.declareProperty("AngleOffset", 0.0, Description="Angle offset (degrees)")
self.declareProperty("AngleOffsetError", 0.0, Description="Angle offset error (degrees)")
# Output workspace to put the transmission histo into
self.declareWorkspaceProperty("OutputWorkspace", "", Direction.Output)

Expand Down Expand Up @@ -118,10 +118,10 @@ def PyExec(self):

# Rebin data (x-axis is in TOF)
ws_histo_data = ws_name+"_histo"
Rebin(InputWorkspace=ws_event_data, OutputWorkspace=ws_histo_data, Params=tof_binning)
Rebin(InputWorkspace=ws_event_data, OutputWorkspace=ws_histo_data, Params=[TOFrange[0], 200.0, TOFrange[1]])

# Keep only range of TOF of interest
CropWorkspace(ws_histo_data,ws_histo_data,XMin=TOFrange[0], XMax=TOFrange[1])
#CropWorkspace(ws_histo_data,ws_histo_data,XMin=TOFrange[0], XMax=TOFrange[1])

# Normalized by Current (proton charge)
NormaliseByCurrent(InputWorkspace=ws_histo_data, OutputWorkspace=ws_histo_data)
Expand Down

0 comments on commit 7734a97

Please sign in to comment.