Setting this to 1 in Python allows the BScope2__2025_02_28 dataset to use the initial part of the curve and get a nice quantal size if around 10. In MATLAB this just is not working the same way. The curve looks wrong. So negative photon counts.
EDIT: the issue is partially resolved (I set the count_weight_gamma to 2.0). But I don't follow why 1.0 is not correct, as it is in Python.