Skip to content

Commit

Permalink
BUG: savetxt accepts lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Oct 1, 2024
1 parent 94e2958 commit 48378d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpy/mathutils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ def savetxt(
)
# Generate the data points using the callable
x = np.linspace(lower, upper, samples)
data_points = np.column_stack((x, self.source(x)))
data_points = np.column_stack((x, self.get_value_opt(x)))
else:
# If the source is already an array, use it as is
data_points = self.source
Expand Down

0 comments on commit 48378d5

Please sign in to comment.