From 1c935599e900ab4e8dbe21bf67b8d61fc106dbfb Mon Sep 17 00:00:00 2001 From: Michael Stangl Date: Wed, 8 Jul 2026 09:44:17 +0200 Subject: [PATCH] =?UTF-8?q?Complexity=20a,b,c=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/stlxml2awl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stlxml2awl.py b/lib/stlxml2awl.py index 4b3334b..2c9799f 100644 --- a/lib/stlxml2awl.py +++ b/lib/stlxml2awl.py @@ -349,6 +349,8 @@ def analyze_complexity(blk): def classify(xml_path, complexity): + if complexity.networks == 0: + return "A", "reine Datenablage ohne Programmcode (0 Netzwerke, z.B. GlobalDB)" if complexity.has_pointer_signal: return "C", f"registerindirekte Adressierung ({complexity.register_indirect}x Indirect, {complexity.pointer_arith}x AR-Arithmetik)" name_cat = classify_by_name(xml_path)