-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Pin case sensitivity. #160
Comments
Thank you for reporting this bug. It seems WireViz is case sensitive about identifiers, but unfortunately Graphviz is not. This also means that a similar identifier problem might occur when a connector/cable name is not case insensitive unique. I suggest keeping WireViz case sensitive to allow use cases like yours, and use pin index instead of pin name in all connector port identifiers to ensure their uniqueness. If it is really important to keep the pin name in the port identifier, then it might be appended as a suffix to the pin index when different from it. |
Here's a quick test that displays the observed behavior:
Workaround to display expected result: |
+1 👍 |
The safest approach is to use an internally assigned, numerical, auto-incremented ID to every pin (analogously, assign a similar ID to every wire in a cable to iterate over) and map the user-specified pin ID to this internal one. In the typical case where a user does not specify a connector's In the above mentioned case, Python/WireViz will case-sensitively match the user-provided
|
Closes #160. Co-authored-by: kvid <kvid@users.noreply.github.com>
I'm looking at implementing this but I use a lot of mil-circ connectors.
As such, they typically run A-Z, then a-z, then I think aa-zz.
As it stands, defining the template:
And then using pin "a" actually connects pin "A". In my case, these are VERY different pins. This is with the latest dev branch.
The text was updated successfully, but these errors were encountered: