From ff7f1a856e0939906dd372d7ce6ddf8c3327f252 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Tue, 6 Feb 2024 16:18:29 +0000 Subject: [PATCH] Add back name param --- python_binding/operator/pybind_GenericOperator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python_binding/operator/pybind_GenericOperator.cpp b/python_binding/operator/pybind_GenericOperator.cpp index 2b627be41..e249e0f5d 100644 --- a/python_binding/operator/pybind_GenericOperator.cpp +++ b/python_binding/operator/pybind_GenericOperator.cpp @@ -33,11 +33,12 @@ void init_GenericOperator(py::module& m) { IOIndex_t nbData, IOIndex_t nbParam, IOIndex_t nbOut, + const std::string& name = "", const py::kwargs kwargs){ - std::string name = ""; - if (kwargs.contains("name")) { - name = kwargs["name"].cast<std::string>(); - } + // std::string name = ""; + // if (kwargs.contains("name")) { + // name = kwargs["name"].cast<std::string>(); + // } std::shared_ptr<Node> genericNode = GenericOperator( type, nbData, -- GitLab