Units: Cannot use the same alias for multiple pins
See original GitHub issueNow this may be me not knowing python 😃
This code
part = Part('74xx', '74LS32')
part.make_unit('A', 1, 2, 3)
part.A.set_pin_alias('1A', 1)
gives this error
ERROR: Cannot use the same alias for multiple pins.
Looking at the Part.py source I think somehow my pin ‘1’ is interpreted as a list of pins. Not sure why.
Also I was surprised that the units were not already there, I can see them in the KiCad symbol editor? I call set_default_tool(KICAD) to make sure those are used…?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
RemNote Tutorial - Aliases and Pins - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >About Aliases - WatchGuard Technologies
An alias is a shortcut that identifies a group of hosts, networks, or interfaces. Your configuration file includes many default aliases.
Read more >Multiple aliases referencing the same pin - Developers - Klipper
In klippy/pins.py#L45 is a check that ensures that multiple commands that use different aliases to “activate” the same pin cannot be used ...
Read more >Using Alias In When Portion of a Case Statement in Oracle SQL
I'm just wondering if it's possible to use an alias in a case statement later in the select statement for Oracle (I know...
Read more >assign same alias to multiple email accounts
You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question (144). Report...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The newest modifications have been pushed. You can get them like this:
Now when a part is read from a symbol library, the part units are automatically created with names like uA, uB, …
For making pin aliases, just make an assignment to the .aliases member of a part or part unit. You can also assign multiple aliases to a pin by using the += operator.
I’m getting ready to push it to Github. Once I do that, I’ll let you know how to install it. (It’s not ready for a full PyPi release.) This push will also enable automatic loading of part units when the symbol library is read, and it makes creating pin aliases a bit easier.