RocketPy-Team / RocketPy

Next generation High-Power Rocketry 6-DOF Trajectory Simulation
https://docs.rocketpy.org/
MIT License
650 stars 159 forks source link

BUG: `savetxt` Not Accepting lambda Functions #698

Closed MateusStano closed 1 month ago

MateusStano commented 1 month ago

Description

Currently, lambda defined Function are not correctly saved when using savetxt. The problem was that a np.array was being passed for the evaluation of the lambda.

The solution was to use Function's get_value_opt to call on the lambdas.

MateusStano commented 1 month ago

Tests passing?

they are passing locally. The problem on actions is unrelated to the PR