From aeb7fbb72c6e54d2a5371b4585610126ee0a6158 Mon Sep 17 00:00:00 2001
From: idealbuq <iryna.dealbuquerquesilva@cea.fr>
Date: Thu, 12 Sep 2024 12:32:20 +0000
Subject: [PATCH] Corrected conflicts of enum dtype

---
 python_binding/data/pybind_Data.cpp | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/python_binding/data/pybind_Data.cpp b/python_binding/data/pybind_Data.cpp
index 4e17328e5..9db0a9076 100644
--- a/python_binding/data/pybind_Data.cpp
+++ b/python_binding/data/pybind_Data.cpp
@@ -53,20 +53,21 @@ void init_Data(py::module& m){
     e_dtype.def("__str__", [enum_names](const DataType& dtype) {
         return enum_names[static_cast<int>(dtype)];
     }, py::prepend());;
+
     // TODO : extend with more values !
-    py::enum_<DataType>(m, "dtype")
-    .value("float64", DataType::Float64)
-    .value("float32", DataType::Float32)
-    .value("float16", DataType::Float16)
-    .value("int8", DataType::Int8)
-    .value("int16", DataType::Int16)
-    .value("int32", DataType::Int32)
-    .value("int64", DataType::Int64)
-    .value("uint8", DataType::UInt8)
-    .value("uint16", DataType::UInt16)
-    .value("uint32", DataType::UInt32)
-    .value("uint64", DataType::UInt64)
-    ;
+    // py::enum_<DataType>(m, "dtype")
+    // .value("float64", DataType::Float64)
+    // .value("float32", DataType::Float32)
+    // .value("float16", DataType::Float16)
+    // .value("int8", DataType::Int8)
+    // .value("int16", DataType::Int16)
+    // .value("int32", DataType::Int32)
+    // .value("int64", DataType::Int64)
+    // .value("uint8", DataType::UInt8)
+    // .value("uint16", DataType::UInt16)
+    // .value("uint32", DataType::UInt32)
+    // .value("uint64", DataType::UInt64)
+    // ;
 
     py::enum_<DataFormat>(m, "dformat")
     .value("Default", DataFormat::Default)
-- 
GitLab