Skip to content

Commit

Permalink
fix out of bounds condition checker
Browse files Browse the repository at this point in the history
  • Loading branch information
kcarloni committed Dec 13, 2023
1 parent 5640f7a commit 7c7fee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function evaluate_simple( x, spt::SplineTable )
centers = search_centers( x, spt.ndim, spt.knots, spt.orders, spt.naxes, spt.nknots )

# following https://github.com/icecube/photospline/blob/master/src/python/photosplinemodule.cpp#L934
(!centers) && ( return 0. )
(centers == false) && ( return 0. )

calc_derivs = fill( false, spt.ndim )

Expand Down

0 comments on commit 7c7fee6

Please sign in to comment.