Skip to content

Commit

Permalink
updated function to guess CCDLabel from pixel size (namely EIGER's se…
Browse files Browse the repository at this point in the history
…ries)
  • Loading branch information
BM32ESRF committed Nov 8, 2024
1 parent 9a28845 commit f4506d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LaueTools/IOLaueTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,16 @@ def readCalibParametersInFile(openfile, Dict_to_update=None, guessCCDLabel=True)
ccdlabel = 'sCMOS'
elif abs(ps-0.0365) <= 0.002:
ccdlabel = 'sCMOS_16M'
elif abs(ps-0.075) <= 0.002:
elif abs(ps-0.075000001) < 0.0000000001:
ccdlabel = 'psl_weiwei'
elif abs(ps-0.075000002) < 0.0000000001:
ccdlabel = 'EIGER_4MCdTe'
elif abs(ps-0.075000003) < 0.0000000001:
ccdlabel = 'EIGER_4MCdTestack'
elif abs(ps-0.075000004) < 0.0000000001:
ccdlabel = 'EIGER_1M'
elif abs(ps-0.075000005) < 0.0000000001:
ccdlabel = 'EIGER_4M'
elif abs(ps-0.031) <= 0.002:
ccdlabel = 'VHR_Feb13'
elif abs(ps-0.022) <= 0.002:
Expand Down

0 comments on commit f4506d9

Please sign in to comment.