Skip to content

Commit

Permalink
Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Apr 4, 2013
1 parent 1499621 commit bb4feea
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from reduction.reducer import ReductionStep
from mantid.simpleapi import *
import mantid
from mantid import config
from mantid.simpleapi import *
import string
import os

Expand Down Expand Up @@ -136,8 +137,9 @@ def _load_single_file(self, filename, output_ws):
logger.debug('self._monitor_index = ' + str(self._monitor_index))

for ws in workspaces:
if (loader_name.endswith('Nexus')):
LoadNexusMonitors(Filename=self._data_files[output_ws],OutputWorkspace= ws+'_mon')
if isinstance(mtd[ws],mantid.api.IEventWorkspace):
LoadNexusMonitors(Filename=self._data_files[output_ws],
OutputWorkspace= ws+'_mon')
else:
## Extract Monitor Spectrum
ExtractSingleSpectrum(InputWorkspace=ws,OutputWorkspace= ws+'_mon',WorkspaceIndex= self._monitor_index)
Expand Down

0 comments on commit bb4feea

Please sign in to comment.