Skip to content

Commit

Permalink
Fix issue in TransformToIqt
Browse files Browse the repository at this point in the history
Refs #11740
  • Loading branch information
DanNixon committed May 12, 2015
1 parent e27fd9c commit e44eed8
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -221,8 +221,16 @@ def _fury(self):
"""
from IndirectCommon import CheckHistZero, CheckHistSame, CheckAnalysers

try:
CheckAnalysers(self._sample, self._resolution)
except ValueError:
# A genuine error the shows that the two runs are incompatible
raise
except:
# Checking could not be performed due to incomplete or no instrument
logger.warning('Could not check for matching analyser and reflection')

# Process resolution data
CheckAnalysers(self._sample, self._resolution)
num_res_hist = CheckHistZero(self._resolution)[0]
if num_res_hist > 1:
CheckHistSame(self._sample, 'Sample', self._resolution, 'Resolution')
Expand Down

0 comments on commit e44eed8

Please sign in to comment.