Skip to content

Commit

Permalink
refs #9135 Careful treatment of monitor spectra
Browse files Browse the repository at this point in the history
Not if it caused any problem, but explicitly executed the operation to find proper monitor number corresponding to monitor ID
  • Loading branch information
abuts committed Mar 7, 2014
1 parent 7e891fd commit d023298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py
Expand Up @@ -622,7 +622,9 @@ def normalise(self, data_ws, result_name, method, range_offset=0.0,mon_number=No

monWS_name = data_ws.getName()+'_monitors'
if monWS_name in mtd:
NormaliseToMonitor(InputWorkspace=data_ws, OutputWorkspace=result_name, MonitorWorkspace=monWS_name,
mon_ws = mtd[monWS_name];
mon_index = mon_ws.getIndexFromSpectrumNumber(mon_spectr_num);
NormaliseToMonitor(InputWorkspace=data_ws, OutputWorkspace=result_name, MonitorWorkspace=mon_ws, MonitorWorkspaceIndex=mon_index,
IntegrationRangeMin=float(str(range_min)), IntegrationRangeMax=float(str(range_max)),IncludePartialBins=True)
else:
NormaliseToMonitor(InputWorkspace=data_ws, OutputWorkspace=result_name, MonitorSpectrum=mon_spectr_num,
Expand Down

0 comments on commit d023298

Please sign in to comment.