Skip to content

Commit

Permalink
Solve issue of strange warning message
Browse files Browse the repository at this point in the history
Recognise the names given by SANS2D instruments for the bank detectors,
and explain better the warning message.

re #6982
  • Loading branch information
gesnerpassos committed May 20, 2013
1 parent 49ddfa4 commit ea1e646
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/Mantid/scripts/SANS/isis_reduction_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,13 +1456,13 @@ def getPixelCorrFile(self, detector ):
override CalculateNorm.
"""
detector = detector.upper()
if detector in ("FRONT","HAB","FRONT-DETECTOR-BANK"):
if detector in ("FRONT","HAB","FRONT-DETECTOR-BANK", "FRONT-DETECTOR"):
return self._high_angle_pixel_file
elif detector in ("REAR","MAIN","MAIN-DETECTOR-BANK",""):
elif detector in ("REAR","MAIN","MAIN-DETECTOR-BANK","", "REAR-DETECTOR"):
return self._low_angle_pixel_file
else :
logger.warning("ASK GETPIXELCORRFILE WITHOUT ARGUMENT: + "+ str(detector))
return self._pixel_file
logger.warning("Request of pixel correction file with unknown detector ("+ str(detector)+")")
return self._pixel_file

def calculate(self, reducer, wave_wks=[]):
"""
Expand Down

0 comments on commit ea1e646

Please sign in to comment.