9#include <boost/python/list.hpp>
13namespace PythonInterface {
22template <
typename ElementType>
struct ToPyList {
28 inline boost::python::list
operator()(
const std::vector<ElementType> &cdata)
const {
29 boost::python::list result;
30 for (
const auto &item : cdata) {
Helper class which provides the Collimation Length for SANS instruments.
Converter that takes a std::vector and converts it into a python list.
boost::python::list operator()(const std::vector< ElementType > &cdata) const
Converts a cvector to a numpy array.