mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
Export Flags.ToDict to python
This commit is contained in:
parent
49a6172548
commit
2b7347ce07
@ -177,6 +177,10 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT
|
||||
|
||||
return py::cast(self.GetDefineFlag(name));
|
||||
}, py::arg("name"), "Return flag by given name")
|
||||
.def("ToDict", [](const Flags& flags)
|
||||
{
|
||||
return CreateDictFromFlags(flags);
|
||||
})
|
||||
;
|
||||
py::implicitly_convertible<py::dict, Flags>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user