From 2d0e9b8721b387e6f3459a3187152a8979ac5fe7 Mon Sep 17 00:00:00 2001
From: NAUD Maxence <maxence.naud@cea.fr>
Date: Tue, 5 Nov 2024 14:51:18 +0000
Subject: [PATCH] [add] access to attributes of Node

---
 python_binding/graph/pybind_Node.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/python_binding/graph/pybind_Node.cpp b/python_binding/graph/pybind_Node.cpp
index d8e77bb25..35f632744 100644
--- a/python_binding/graph/pybind_Node.cpp
+++ b/python_binding/graph/pybind_Node.cpp
@@ -34,6 +34,11 @@ void init_Node(py::module& m) {
     Type of the node.
     )mydelimiter")
 
+    .def("attributes", &Node::attributes,
+    R"mydelimiter(
+    Get attributes.
+    )mydelimiter")
+
     .def("get_operator", &Node::getOperator,
     R"mydelimiter(
     Get the Operator object of the Node.
@@ -48,7 +53,7 @@ void init_Node(py::module& m) {
     :rtype: str
     )mydelimiter")
 
-    .def("create_unique_name", &Node::createUniqueName, py::arg("base_name"), 
+    .def("create_unique_name", &Node::createUniqueName, py::arg("base_name"),
     R"mydelimiter(
     Given a base name, generate a new name which is unique in all the GraphViews containing this node.
 
-- 
GitLab