From 48378d55b46e827493a1d3837108f158812a1d33 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Tue, 1 Oct 2024 16:30:23 +0200 Subject: [PATCH] BUG: savetxt accepts lambdas --- rocketpy/mathutils/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocketpy/mathutils/function.py b/rocketpy/mathutils/function.py index 9e6e07b9d..945d36d26 100644 --- a/rocketpy/mathutils/function.py +++ b/rocketpy/mathutils/function.py @@ -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