5 #include <SimulationCycleCallback.h>
6 #include <PyHeliosOutputWrapper.h>
7 #include <boost/python.hpp>
10 using boost::python::call;
35 std::vector<Measurement> &measurements,
36 std::vector<Trajectory> &trajectories,
37 std::string
const &outpath
43 std::vector<std::string>{outpath},
46 PyGILState_STATE gilState = PyGILState_Ensure();
47 call<void>(pyCallback, ref(phow));
48 PyGILState_Release(gilState);
Abstract class to handle simulation cycle callbacks.
Definition: SimulationCycleCallback.h:12
Python wrapper for helios output.
Definition: PyHeliosOutputWrapper.h:19
Python callback for each simulation cycle that has been completed.
Definition: PySimulationCycleCallback.h:21
void operator()(std::vector< Measurement > &measurements, std::vector< Trajectory > &trajectories, std::string const &outpath)
Callback functor which operates over vector of measurements.
Definition: PySimulationCycleCallback.h:34