fix
This commit is contained in:
@@ -255,6 +255,17 @@ def build_eckrad_details(block):
|
||||
# --- Bekannte Bloecke ignorieren ---
|
||||
SKIP_BLOCKS = set(BLOCKPATTERNS.get("pattern_ks_subblocks", ["K1", "K2", "K3", "K4", "KS_EIN", "KS_AUS"]))
|
||||
|
||||
# Eigenstaendige Separator_SP/S-LP- und Scanner-Bloecke werden von der Lisp-
|
||||
# Sammlung (csv:collect-export-blocks) zwar mit in export_raw.json geschrieben
|
||||
# (export_csv.py gibt ihnen dort eigene TeileArt-Zeilen), aber HIER bewusst
|
||||
# NICHT in eine eigene Sivas-Zeile uebernommen: ihre Stueckzahl wird bereits
|
||||
# ueber die ANZAHL_SEPARATOR/ANZAHL_SCANNER-Attribute des zugehoerigen
|
||||
# Kreisel/GF/VF-Blocks gezaehlt (siehe kreisel_signature/build_*_details
|
||||
# oben) - ein zusaetzlicher eigener Eintrag wuerde doppelt zaehlen.
|
||||
SEP_SCANNER_PATTERNS = (
|
||||
BLOCKPATTERNS.get("pattern_separator", []) + BLOCKPATTERNS.get("pattern_scanner", [])
|
||||
)
|
||||
|
||||
# Sivas-Nummern und Bezeichnungen je ILS-Elementtyp
|
||||
# Hinweis: "ils_kurve", sind aktuell nur
|
||||
# Typnamen-Platzhalter - die zugehoerigen Menuebefehle sind noch Dummies
|
||||
@@ -330,6 +341,10 @@ def process_blocks(blocks, lookup):
|
||||
if bname in SKIP_BLOCKS:
|
||||
continue
|
||||
|
||||
# Separator/Scanner: siehe Kommentar bei SEP_SCANNER_PATTERNS oben.
|
||||
if matches_any(bname, SEP_SCANNER_PATTERNS):
|
||||
continue
|
||||
|
||||
# --- Omniflo Bogen oder Weiche (erkannt via Katalog) ---
|
||||
if bname in lookup:
|
||||
typ, eintrag = lookup[bname]
|
||||
|
||||
Reference in New Issue
Block a user