mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40:34 +05:00
Merge branch 'flags_to_dict' into 'master'
Export Flags.ToDict to python See merge request jschoeberl/netgen!425
This commit is contained in:
commit
839c6a23fa
@ -177,6 +177,10 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT
|
|||||||
|
|
||||||
return py::cast(self.GetDefineFlag(name));
|
return py::cast(self.GetDefineFlag(name));
|
||||||
}, py::arg("name"), "Return flag by given name")
|
}, py::arg("name"), "Return flag by given name")
|
||||||
|
.def("ToDict", [](const Flags& flags)
|
||||||
|
{
|
||||||
|
return CreateDictFromFlags(flags);
|
||||||
|
})
|
||||||
;
|
;
|
||||||
py::implicitly_convertible<py::dict, Flags>();
|
py::implicitly_convertible<py::dict, Flags>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user