mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Merge branch 'get_status' into 'master'
export get/set status to python See merge request jschoeberl/netgen!103
This commit is contained in:
commit
dfca84b77b
@ -61,6 +61,15 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
|
||||
m.attr("_ngscript") = py::cast(script);
|
||||
|
||||
m.def("_GetStatus", []()
|
||||
{
|
||||
MyStr s; double percent;
|
||||
GetStatus(s, percent);
|
||||
return py::make_tuple(s.c_str(), percent);
|
||||
});
|
||||
m.def("_PushStatus", [](string s) { PushStatus(MyStr(s)); });
|
||||
m.def("_SetThreadPercentage", [](double percent) { SetThreadPercent(percent); });
|
||||
|
||||
py::class_<NGDummyArgument>(m, "NGDummyArgument")
|
||||
.def("__bool__", []( NGDummyArgument &self ) { return false; } )
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user