tudat-team / tudatpy

A Python platform to perform astrodynamics and space research.
https://tudat-space.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
29 stars 31 forks source link

C++ to Python conversion crash #160

Open YorchMcM opened 1 year ago

YorchMcM commented 1 year ago

The function io.read_vector_history_from_file crashes when used on Python and gives the following error:

TypeError: Unable to convert function return value to a Python type! The signature was (vector_size: int, file_name: str) -> Dict[float, Eigen::Matrix<double,-1,1,0,-1,1>]

Something similar happens with the function numerical_simulation.propagation.get_zero_normal_mode_rotational_state, although the error reads somewhat different:

TypeError: Unable to convert function return value to a Python type! The signature was (bodies: tudatpy.kernel.numerical_simulation.environment.SystemOfBodies, integrator_settings: tudat::numerical_integrators::IntegratorSettings, propagator_settings: tudat::propagators::SingleArcPropagatorSettings<double,double>, body_mean_rotational_rate: float, dissipation_times: List[float], propagate_undamped: bool = True) -> Tuple[numpy.ndarray[numpy.float64[m, 1]], List[Tuple[Dict[float, numpy.ndarray[numpy.float64[m, 1]]], Dict[float, numpy.ndarray[numpy.float64[m, 1]]]]], List[Tuple[Dict[float, numpy.ndarray[numpy.float64[m, 1]]], Dict[float, numpy.ndarray[numpy.float64[m, 1]]]]]]

I've been told you are aware of this and that for some people this doesn't happen. I attach the contents of my conda environment so that hopefully the problematic module(s) can be identified.