Instead of written to stdout or a file, the trajectory output could be returned as a boost::python::numpy::ndarray. Especially in cpypyqed, this would drastically ease interaction with numpy.
This could be done in the python wrapper of evolve only (so as not to make the main part of the framework depend on Boost.Python) by letting the trajectory write on a stringstream and using numpy::loadtxt to load from the string into an ndarray.
Last edit: Vukics, András 2018-01-31
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This could be done in the python wrapper of evolve only (so as not to make the main part of the framework depend on Boost.Python) by letting the trajectory write on a stringstream and using numpy::loadtxt to load from the string into an ndarray.
Last edit: Vukics, András 2018-01-31