aboutsummaryrefslogtreecommitdiff
path: root/src/ee
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-19 15:34:04 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-19 15:34:04 +0200
commit6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb (patch)
tree75c81deea930b39fda5538bb760598d2dbe1b73c /src/ee
parentcc381711f4f6be93b03b8577e35d4dd37db6963c (diff)
downloadee-python-6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb.tar.gz
ee-python-6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb.tar.bz2
ee-python-6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb.tar.xz
ee-python-6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb.zip
bom.rst.j2: Show number of unresolved parts.
part_validate_parts: Remove warning I didn't understand.
Diffstat (limited to 'src/ee')
-rw-r--r--src/ee/templates/bom.rst.j22
-rw-r--r--src/ee/tools/part_validate_parts.py6
2 files changed, 4 insertions, 4 deletions
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 }} <ref-{{ 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.")