From dd8fcb5ef47967248b2baa5ddb9f54b2b3c28972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Milk?= <rene.milk@wwu.de> Date: Tue, 6 Feb 2018 22:38:37 +0100 Subject: [PATCH] [py] remove deprecated py::metaclass usage --- .../gdt/local/diffusive-flux-estimation-operator.bindings.hh | 2 +- python/dune/gdt/local/elliptic-ipdg-operators.bindings.hh | 4 ++-- python/dune/gdt/playground/spaces/block.bindings.hh | 2 +- python/dune/gdt/spaces/interface.bindings.hh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/dune/gdt/local/diffusive-flux-estimation-operator.bindings.hh b/python/dune/gdt/local/diffusive-flux-estimation-operator.bindings.hh index 1050bc370..ab13025f5 100644 --- a/python/dune/gdt/local/diffusive-flux-estimation-operator.bindings.hh +++ b/python/dune/gdt/local/diffusive-flux-estimation-operator.bindings.hh @@ -58,7 +58,7 @@ public: try { const auto InterfaceName = XT::Common::to_camel_case( "local_volume_two_form_interface_" + XT::Grid::bindings::grid_name<G>::value() + "_to_1x1"); - py::class_<InterfaceType>(m, InterfaceName.c_str(), "LocalVolumeTwoFormInterface", py::metaclass()); + py::class_<InterfaceType>(m, InterfaceName.c_str(), "LocalVolumeTwoFormInterface"); } catch (std::runtime_error&) { } diff --git a/python/dune/gdt/local/elliptic-ipdg-operators.bindings.hh b/python/dune/gdt/local/elliptic-ipdg-operators.bindings.hh index 9022e2be4..29d197ab2 100644 --- a/python/dune/gdt/local/elliptic-ipdg-operators.bindings.hh +++ b/python/dune/gdt/local/elliptic-ipdg-operators.bindings.hh @@ -166,7 +166,7 @@ public: + backend_name<SP::space_backend>::value() + "_space" + intersection_postfix<>::value()); - py::class_<InterfaceType>(m, InterfaceName.c_str(), InterfaceName.c_str(), py::metaclass()); + py::class_<InterfaceType>(m, InterfaceName.c_str(), InterfaceName.c_str()); } catch (std::runtime_error&) { } @@ -333,7 +333,7 @@ public: + backend_name<SP::space_backend>::value() + "_space" + intersection_postfix<>::value()); - py::class_<InterfaceType>(m, InterfaceName.c_str(), InterfaceName.c_str(), py::metaclass()); + py::class_<InterfaceType>(m, InterfaceName.c_str(), InterfaceName.c_str()); } catch (std::runtime_error&) { } diff --git a/python/dune/gdt/playground/spaces/block.bindings.hh b/python/dune/gdt/playground/spaces/block.bindings.hh index ef437d8f0..8e59ee1aa 100644 --- a/python/dune/gdt/playground/spaces/block.bindings.hh +++ b/python/dune/gdt/playground/spaces/block.bindings.hh @@ -278,7 +278,7 @@ public: const auto ClassName = XT::Common::to_camel_case("block_" + space_name<SP>::value()); - bound_type c(m, ClassName.c_str(), ClassName.c_str(), py::metaclass()); // metaclass required for static properties + bound_type c(m, ClassName.c_str(), ClassName.c_str()); // metaclass required for static properties c.def("__init__", [](type& self, XT::Grid::GridProvider<G, XT::Grid::DD::SubdomainGrid<G>>& dd_grid_provider) { diff --git a/python/dune/gdt/spaces/interface.bindings.hh b/python/dune/gdt/spaces/interface.bindings.hh index 7f78612fa..e3a3a8734 100644 --- a/python/dune/gdt/spaces/interface.bindings.hh +++ b/python/dune/gdt/spaces/interface.bindings.hh @@ -357,7 +357,7 @@ public: const auto ClassName = XT::Common::to_camel_case(space_name /*space_name<SP>::value()*/); - bound_type c(m, ClassName.c_str(), ClassName.c_str(), py::metaclass()); + bound_type c(m, ClassName.c_str(), ClassName.c_str()); c.def_property_readonly("dimDomain", [](const type& /*self*/) { return S::dimDomain; }); c.def_property_readonly("dimRange", [](const type& /*self*/) { return S::dimRange; }); -- GitLab