From 342860846b6b45a0cfe3055fad5bfe6826bf7d4b Mon Sep 17 00:00:00 2001 From: Bruno Sorban Date: Wed, 26 Jun 2024 13:52:32 +0200 Subject: [PATCH] Added time back to exported functions --- rocketpy/simulation/monte_carlo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocketpy/simulation/monte_carlo.py b/rocketpy/simulation/monte_carlo.py index 55dd3d395..b6db1b5b1 100644 --- a/rocketpy/simulation/monte_carlo.py +++ b/rocketpy/simulation/monte_carlo.py @@ -1579,7 +1579,8 @@ def time_function_serializer(function_object, t_range=None, sample_time=None): t0 = source[0, 0] tf = source[-1, 0] t = np.arange(t0, tf, sample_time) - source = func(t) + y = func(t) + source = np.column_stack((t, y)) return source