From 8e73ba68fc83908ae30d8e843c8b5291ff831310 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 11 May 2018 10:53:03 +0200 Subject: [PATCH 1/2] export mesh timestamp to python --- libsrc/meshing/python_mesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 6e041db7..931427c8 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -482,6 +482,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) */ .def("__str__", &ToString) + .def_property_readonly("timestamp", &Mesh::GetTimeStamp) .def("Load", FunctionPointer ([](Mesh & self, const string & filename) { From 375460b75d93d30bb79f9bdf09673db8ce59bda4 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 14 May 2018 11:01:27 +0200 Subject: [PATCH 2/2] change timestamp to python private convention --- libsrc/meshing/python_mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 931427c8..e2ab32c5 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -482,7 +482,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) */ .def("__str__", &ToString) - .def_property_readonly("timestamp", &Mesh::GetTimeStamp) + .def_property_readonly("_timestamp", &Mesh::GetTimeStamp) .def("Load", FunctionPointer ([](Mesh & self, const string & filename) {