[AGIPD] Replace `agipdalgs.gain_choose_int` by fused type
Compare changes
Noticed by chance while starting work on the LPD correction notebook that the gain_choose_int
function is identical to gain_choose
, but with a different input type. This can be neatly expressed with fused types in Cython, which duplicate the function on the C-level.
Not yet, will do as part of LPD correction overhaul.