From 4c54d064d395e2c79bccbef15124552f9b0bb9b1 Mon Sep 17 00:00:00 2001 From: Michele Bigi Date: Fri, 28 Aug 2026 11:09:43 +0200 Subject: [PATCH] Add missing simple_mpn_types on PipelineContext so BOM parse can classify crystals and discretes. Co-authored-by: Cursor --- backend/services/pipeline.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/services/pipeline.py b/backend/services/pipeline.py index 5c86e45..1d3df26 100644 --- a/backend/services/pipeline.py +++ b/backend/services/pipeline.py @@ -369,6 +369,9 @@ class PipelineContext: # the primary numeric value from here without saving to the shared library. passive_values: dict[str, str] = field(default_factory=dict) simple_mpns: dict[str, list[str]] = field(default_factory=dict) + # Taxonomy type per simple MPN (crystal, discrete, connector, …) — used + # by specs extraction / DigiKey auto-resolve. + simple_mpn_types: dict[str, str] = field(default_factory=dict) datasheet_urls: dict[str, str] = field(default_factory=dict) # Cached purple-parts payload (description, category, subcategory, manufacturer, # package, ...) keyed by *resolved* MPN. Populated by _resolve_lcsc_codes during