From 578c0429e3b39aa52e7947290ea4dbab986acb32 Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Sun, 16 Mar 2025 18:02:54 +0100
Subject: [PATCH] Fixed get_op_stats()

---
 aidge_core/dynamic_analysis.py | 2 +-
 aidge_core/static_analysis.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/aidge_core/dynamic_analysis.py b/aidge_core/dynamic_analysis.py
index c8cdd6710..232b7438d 100644
--- a/aidge_core/dynamic_analysis.py
+++ b/aidge_core/dynamic_analysis.py
@@ -60,7 +60,7 @@ class DynamicAnalysis(aidge_core.DynamicAnalysis):
             if node.type() == "Producer":
                 continue
 
-            stats = self.get_op_stats(node)
+            stats = aidge_core.OperatorStats.get_op_stats(node)
             name = namePtrTable[node]
             attr = {}
             if type(node.get_operator()) is aidge_core.GenericOperatorOp:
diff --git a/aidge_core/static_analysis.py b/aidge_core/static_analysis.py
index 907bc48f5..c237e7a96 100644
--- a/aidge_core/static_analysis.py
+++ b/aidge_core/static_analysis.py
@@ -96,7 +96,7 @@ class StaticAnalysis(aidge_core.StaticAnalysis):
             if node.type() == "Producer":
                 continue
 
-            stats = self.get_op_stats(node)
+            stats = aidge_core.OperatorStats.get_op_stats(node)
             name = namePtrTable[node]
             attr = {}
             if type(node.get_operator()) is aidge_core.GenericOperatorOp:
-- 
GitLab