Skip to content

Commit ffcb1ef

Browse files
authored
Merge pull request #698 from RocketPy-Team/bug/savetxt-lambda-functions
BUG: `savetxt` Not Accepting lambda Functions
2 parents 94e2958 + 48378d5 commit ffcb1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/mathutils/function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ def savetxt(
31713171
)
31723172
# Generate the data points using the callable
31733173
x = np.linspace(lower, upper, samples)
3174-
data_points = np.column_stack((x, self.source(x)))
3174+
data_points = np.column_stack((x, self.get_value_opt(x)))
31753175
else:
31763176
# If the source is already an array, use it as is
31773177
data_points = self.source

0 commit comments

Comments
 (0)