Skip to content

Commit

Permalink
added an automatic recognition of sCMOS_9M from pixelsize. BUT could …
Browse files Browse the repository at this point in the history
…be confusion with imagestar bin2 'IMSTAR_bin2'
  • Loading branch information
BM32ESRF committed Jul 19, 2024
1 parent ab0c258 commit c978135
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions LaueTools/IOLaueTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,12 @@ def readCalibParametersInFile(openfile, Dict_to_update=None, guessCCDLabel=True)
ccdlabel = 'ImageStar_dia_2021'
elif abs(ps-0.044) <= 0.002:
ccdlabel = 'ImageStar_dia_2021_2x2'
elif abs(ps-0.0504) <= 0.001:
ccdlabel = 'IMSTAR_bin2'

elif abs(ps-0.0504) <= 0.002:
ccdlabel = 'sCMOS_9M'
print('\n\n*******\nWARNING ! This detector could be confused with IMSTAR_bin2\n********\n')
# elif abs(ps-0.0504) <= 0.001:
# ccdlabel = 'IMSTAR_bin2'
elif abs(ps-0.0252) <= 0.001:
ccdlabel = 'IMSTAR_bin1'
elif abs(ps-0.2) <= 0.001:
Expand Down

0 comments on commit c978135

Please sign in to comment.