Skip to content

Commit

Permalink
MNT: fix doctest typing casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan committed Sep 19, 2024
1 parent 12ac468 commit 339d7f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rocketpy/mathutils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,13 +1004,13 @@ def get_value(self, *args):
... [(0, 0, 0), (1, 1, 1), (1, 2, 2), (2, 4, 8), (3, 9, 27)]
... )
>>> f4.get_value(1, 1)
np.float64(1.0)
1.0
>>> f4.get_value(2, 4)
np.float64(8.0)
8.0
>>> abs(f4.get_value(1, 1.5) - 1.5) < 1e-2 # the interpolation is not perfect
np.True_
True
>>> f4.get_value(3, 9)
np.float64(27.0)
27.0
"""
if len(args) != self.__dom_dim__:
raise ValueError(
Expand Down

0 comments on commit 339d7f0

Please sign in to comment.