Skip to content

Commit

Permalink
Refs #11691 Hedge for event data without monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed May 6, 2015
1 parent 15daa0e commit 2064893
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Code/Mantid/scripts/SANS/isis_reduction_steps.py
Expand Up @@ -165,7 +165,12 @@ def _load(self, inst = None, is_can=False, extra_options=dict()):

if not added_event_data_flag:
if isinstance(outWs, IEventWorkspace):
LoadNexusMonitors(self._data_file, OutputWorkspace=monitor_ws_name)
try:
LoadNexusMonitors(self._data_file, OutputWorkspace=monitor_ws_name)
except ValueError, details:
sanslog.warning('The file does not contain monitors. \n' +
'The normalization might behave differently than you expect.\n'
' Further details: ' + details + '\n')
else:
if monitor_ws_name in mtd:
DeleteWorkspace(monitor_ws_name)
Expand Down

0 comments on commit 2064893

Please sign in to comment.