Skip to content

Commit

Permalink
Re #4303 fix TOF distribution and speed it up a tiny bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Jan 31, 2012
1 parent 6ed073c commit 4517d87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def counts_vs_y_distribution(file_path, minTOF, maxTOF):
ws_output = "__REFL_Y_distribution"
graph_name = "Counts vs Y"
LoadEventNexus(Filename=file_path, OutputWorkspace=ws)
Rebin(InputWorkspace=ws,OutputWorkspace=ws,Params="0,200000,200000")
ws_integrated = wks_utility.createIntegratedWorkspace(mtd[ws],ws_output,0,303,0,255)
Transpose(InputWorkspace=ws_output, OutputWorkspace=ws_output)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def createIntegratedWorkspace(mt1, outputWorkspace,
if source_to_detector is not None and theta is not None:
_const = float(4) * math.pi * m * source_to_detector / h
_q_axis = 1e-10 * _const * math.sin(theta) / (_tof_axis*1e-6)

else:
_q_axis = _tof_axis

_y_axis = zeros((maxY, len(_q_axis) - 1))
_y_error_axis = zeros((maxY, len(_q_axis) - 1))
Expand Down

0 comments on commit 4517d87

Please sign in to comment.