https://github.com/PaNOSC-ViNYL/SimEx/blob/gapd/Sources/python/SimEx/Calculators/SingFELPhotonDiffractor.py The code is still in gapd branch.