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 committed Mar 18, 2024
1 parent e39ee1f commit 1db6592
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 1db6592

Please sign in to comment.