From 66fdfc737441b73fbcfa6e9de610bd81026b186d Mon Sep 17 00:00:00 2001 From: KV Date: Sun, 7 Feb 2021 20:50:01 +0100 Subject: [PATCH] Show cable color in BOM similar to wires and connectors --- src/wireviz/wv_bom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wireviz/wv_bom.py b/src/wireviz/wv_bom.py index 390c177..76ba4a1 100644 --- a/src/wireviz/wv_bom.py +++ b/src/wireviz/wv_bom.py @@ -89,7 +89,8 @@ def generate_bom(harness: "Harness") -> List[BOMEntry]: + (f', {cable.type}' if cable.type else '') + (f', {cable.wirecount}') + (f' x {cable.gauge} {cable.gauge_unit}' if cable.gauge else ' wires') - + (' shielded' if cable.shield else '')) + + ( ' shielded' if cable.shield else '') + + (f', {translate_color(cable.color, harness.options.color_mode)}' if cable.color else '')) bom_entries.append({ 'description': description, 'qty': cable.length, 'unit': cable.length_unit, 'designators': cable.name if cable.show_name else None, **optional_fields(cable),