From 6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 19 Aug 2019 15:34:04 +0200 Subject: bom.rst.j2: Show number of unresolved parts. part_validate_parts: Remove warning I didn't understand. --- src/ee/templates/bom.rst.j2 | 2 +- src/ee/tools/part_validate_parts.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ee/templates/bom.rst.j2 b/src/ee/templates/bom.rst.j2 index 3463d90..c8bed20 100644 --- a/src/ee/templates/bom.rst.j2 +++ b/src/ee/templates/bom.rst.j2 @@ -3,7 +3,7 @@ BOM === {% if unresolved_parts %} -Unresolved parts: +{{- unresolved_parts|length }} unresolved parts: {% for op in unresolved_parts %} * `{{ op.ref }} `_ {%- endfor %} diff --git a/src/ee/tools/part_validate_parts.py b/src/ee/tools/part_validate_parts.py index d9ad3f7..cebe70f 100644 --- a/src/ee/tools/part_validate_parts.py +++ b/src/ee/tools/part_validate_parts.py @@ -91,9 +91,9 @@ def check_has_footprint(ctx: Context, bom: Part, sch: Part): return ms.warning("Part has footprint in schematic and a BOM part but their footprints do not match. " f"Footprints: part: {fp}, BOM: {supplier_fp}.") - if fp is None and supplier_fp is not None: - return ms.warning(f"The schematic part's footprint should be compatible with the BOM part's footprint: " - f"{supplier_fp}.") + # if fp is None and supplier_fp is not None: + # return ms.warning(f"The schematic part's footprint should be compatible with the BOM part's footprint: " + # f"{supplier_fp}.") if len(ms.messages) == 0: ms.info("Part has footprint and BOM part. Their footprints matches.") -- cgit v1.2.3