Not necessary to cast py::list to python object

This commit is contained in:
Matthias Hochsteger 2016-12-01 14:24:30 +01:00
parent 867ee51fcb
commit e31cc7dfa1

View File

@ -195,8 +195,8 @@ DLL_HEADER void ExportGeom2d(py::module &m)
{ {
cout << "spline is neither line nor spline3" << endl; cout << "spline is neither line nor spline3" << endl;
} }
xpoints.append(py::cast(xp)); xpoints.append(xp);
ypoints.append(py::cast(yp)); ypoints.append(yp);
} }
return py::tuple(py::make_tuple(xlim, ylim, xpoints, ypoints)); return py::tuple(py::make_tuple(xlim, ylim, xpoints, ypoints));