-
Notifications
You must be signed in to change notification settings - Fork 225
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
Reference wires by color or label #194
Conversation
24f240e
to
7847b7c
Compare
I'm sure the |
Update: Wire number can now be displayed as suggested in #169. It is controlled by the Expand to see examples 2 (cables, numbered wires) and 3 (bundle, no numbered wires), as well as a modified example 8 (numbered wires + labels)If there are cables with more exotic/complex wire numbering schemes, those will not be handled right now. |
I suggest also default True when neither wire colors nor wire labels can identify all wires unambiguously, because then wire numbers are the only unambiguous wire identifier.
I suggest showing any empty color or label as an empty string to avoid skipping a ':' separator in such cases, because if some wires are shown with fewer separators, then it is unambiguous which of the identifiers are empty. |
Update: Adressed #70 as well. |
This would only be the case for bundles with ambiguous colors/labels... in which case, the concept of having a numbering no longer applies IMHO. In that case, both in the diagram and in real life, following a wire from one end to the other is the only way to make sure, and I don't see a need for complicating the program logic here.
Can you provide a realistic example of where this would be an issue? If a cable has defined colors, surely there would be no gap in the color list? As for labels, if some wires have none, the final If a cable has wire labels but no set colors, it's more readable to simply leave out the color section altogether, instead of filling it with |
That one is a valid point. Let's leave the logic as-is for now and let the user override in this situation.
I'll think about it; it's not completely unreasonable, but I'm leaning towards leaving the trailing |
LOL 🤣 I see your point. 😆 I was thinking of a case where the diagram wire labels (and possible physical written labels) represent the wire function, and that it could exist some kind of numeric marks on the wires as well, but a better way to handle that would be to prefix the diagram wire labels with the numeric marks to obtain unambiguous labels.
I'm perfectly fine with that.
I can live with either solution. It's not a major issue to me, I was only trying to explain the rationale behind my original suggestion in a better way. |
3d43bc9
to
0ae5b98
Compare
I've rebased onto the latest |
👍
Do you wait for an OK from me? As your previous comment included "I'll think about it...", then I thought I would wait until you concluded before reviewing again. Have you made any recent changes (other than rebasing)? I don't have my PC here to inspect diffs. |
Sorry for being vague. I prefer leaving the trailing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being vague.
No worries. I'm sorry I misunderstood you. As you requested a quick feedback without perfection in mind, I have mainly rebuilt all examples and the diff seems as expected. Thank you also for accepting my earlier suggestion. I don't have the time to look for simplifications of the connection code right now, but I guess that can be done later. Sorry for not being as thorough as usual, but I understand that is what you want this time.
0ae5b98
to
3ff8e6e
Compare
Awesome, thanks! |
Closes #70.
Closes #169.
Closes #193.