From 8166a631d6a703dd7a25fe7d9d7c689d090ca686 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Wed, 21 Oct 2020 15:10:07 +0200 Subject: [PATCH] Hide pin color string + box if color is unknown Removes requirement of using `__` to show pins without color. Any non-color string can be used: `-`, `--`, `__`, `X`, `""` are some options. --- src/wireviz/Harness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index 6f3bbf06..5a9833d1 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -114,7 +114,7 @@ def create_graph(self) -> Graph: f'{pinlabel}' if pinlabel else None]) if connector.pincolors: - if not connector.pincolors[counter] == "__": + if connector.pincolors[counter] in wv_colors._color_hex.keys(): # the cell with the pincolor string and # the cell with the color box # need to be separate, since GraphViz