I have been working with the latest release of WireViz quite happily, not realizing the huge amount of improvement done in the dev branch. For my work with some connectors that are using alphanumeric pin designators, I needed to make a minor change in the DataClasses by simply replacing the int with str:
Pin = Union[str, PlainText] # Pin identifier
Then, in order to make Graphviz properly assign the wires, I also had to replace {pinindex+1} by the {pinname} in the HTML table output. Due to #229, this probably will not be necessary, but please let me know if I am missing something.
I cannot see that it was possible to create pin identifiers from a string like suggeted in #160 without the suggested change above. See the example that it works well for my use case:
Sorry for this report by mistake. I wanted to confirm my statements by freshly reinstalling 0.3.2 from PyPy, but could not reproduce the issue. Not sure what I was doing wrong in the first place.
I have been working with the
latest
release of WireViz quite happily, not realizing the huge amount of improvement done in thedev
branch. For my work with some connectors that are using alphanumeric pin designators, I needed to make a minor change in the DataClasses by simply replacing theint
withstr
:Pin = Union[str, PlainText] # Pin identifier
Then, in order to make Graphviz properly assign the wires, I also had to replace
{pinindex+1}
by the{pinname}
in the HTML table output. Due to #229, this probably will not be necessary, but please let me know if I am missing something.pinhtml.append(f' <td port="p{pinname}r">{pinname}</td>')
I cannot see that it was possible to create pin identifiers from a string like suggeted in #160 without the suggested change above. See the example that it works well for my use case: