Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_vector_history_from_file function (io module) - pybind failed to convert function return value to Python type #150

Open
vieroedo opened this issue Mar 17, 2023 · 0 comments

Comments

@vieroedo
Copy link

vieroedo commented Mar 17, 2023

Hi all!

As the title says, I encountered this issue when trying to use the function read_vector_history_from_file (io module). Precisely, pycharm returns a TypeError saying the return value of the function (in c++ I assume) is an unregistered type. So basically from what Dominic said it should be an issue of pybind that is unable to convert std::map containers with Eigen types in them. I indeed get the 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>]

I am not very experienced in opening GitHub issues, so please let me know if I should add something to it or present it differently, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: tudat
Development

No branches or pull requests

1 participant