Skip to content

Commit 6b394d6

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 1cb0bc7 commit 6b394d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rocketpy/mathutils/function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def __get_value_opt_nd(self, *args):
830830
min_domain = self._domain.T.min(axis=1)
831831
max_domain = self._domain.T.max(axis=1)
832832

833-
if hasattr(self, "_nd_triangulation"):
833+
if self.__interpolation__ == "linear" and hasattr(self, "_nd_triangulation"):
834834
extrap = self._nd_triangulation.find_simplex(args) < 0
835835
else:
836836
lower, upper = args < min_domain, args > max_domain

0 commit comments

Comments
 (0)