These lines take the parametrization bin edges, find bin centers, then pass them into scipy.interpolate.interpn since the bins shape and result shape need to match. This leads to events falling outside of the binning.
https://github.com/mjlarson/kingmaker/blob/4769ea09486f6fe4578d576369952d4763d989ca/kingmaker/wrapper.py#L155-L174
Because we have the warning turned off and a fill value set, we're just always getting the fill values (which are garbage) when our source is outside of the bin centers for the parametrization bins.
Not sure what's the best way to fix this at the moment, so I'll go ahead and just set the interpolation there to use "nearest" for now. Is it good? Nope. But will it work in the meantime? Yes.
These lines take the parametrization bin edges, find bin centers, then pass them into
scipy.interpolate.interpnsince the bins shape and result shape need to match. This leads to events falling outside of the binning.https://github.com/mjlarson/kingmaker/blob/4769ea09486f6fe4578d576369952d4763d989ca/kingmaker/wrapper.py#L155-L174
Because we have the warning turned off and a fill value set, we're just always getting the fill values (which are garbage) when our source is outside of the bin centers for the parametrization bins.
Not sure what's the best way to fix this at the moment, so I'll go ahead and just set the interpolation there to use "nearest" for now. Is it good? Nope. But will it work in the meantime? Yes.