Skip to content

Commit 1ca9a34

Browse files
committed
BUG: account for Function source on input check.
1 parent c2affb4 commit 1ca9a34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rocketpy/mathutils/function.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,8 @@ def _check_user_input(
28552855

28562856
# check source for data type
28572857
# if list or ndarray, check for dimensions, interpolation and extrapolation
2858+
if isinstance(source, Function):
2859+
source = source.get_source()
28582860
if isinstance(source, (list, np.ndarray, str, Path)):
28592861
# Deal with csv or txt
28602862
if isinstance(source, (str, Path)):

0 commit comments

Comments
 (0)