Skip to content

Commit

Permalink
Fix for extrapolation outside of grid.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsjames authored and JelleAalbers committed Mar 22, 2024
1 parent e6ae5b5 commit 6492a3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flamedisx/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def __init__(
self._interpolator = scipy.interpolate.RegularGridInterpolator(
points=tuple(bin_centers),
values=self._mh_diff_rate.histogram,
method='linear')
method='linear',
fill_value=None,
bounds_error=False)
else:
self._interpolator = None

Expand Down

0 comments on commit 6492a3f

Please sign in to comment.