Skip to content

Commit

Permalink
Started to add a debugging mode that will display information necessa…
Browse files Browse the repository at this point in the history
…ry to developpers to figure out issues in reduction. This refs #4303
  • Loading branch information
JeanBilheux committed Jun 5, 2012
1 parent abaa269 commit 3e09a7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLReduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def PyExec(self):

from mantidsimple import mtd

bDebug = False
if bDebug:
print '====== Running in mode DEBUGGING ======='

run_numbers = self.getProperty("RunNumbers")

backSubMethod = 2 #1 uses RefRoi, 2 used own method
Expand Down Expand Up @@ -850,6 +854,9 @@ def PyExec(self):
ws_data_scaled = ws_data

if dMD is not None and theta is not None:

if bDebug:
print 'DEBUG: theta= {0:4f}'.format(theta)

_tof_axis = mtd[ws_data].readX(0)
_const = float(4) * math.pi * m * dMD / h
Expand All @@ -865,6 +872,9 @@ def PyExec(self):
if (q_min >= q_max):
q_min = min(_q_axis)

if bDebug:
print 'DEBUG: [q_min:q_bin:q_max]=[{0:4f},{1:4f},{2:4f}]'.format(q_min, q_step, q_max)

if (backSubMethod == 1):
ws_integrated_data = ws_name + '_IntegratedDataWks'
print '-> keep only range of pixel of interest'
Expand Down

0 comments on commit 3e09a7e

Please sign in to comment.