devbisme / skidl

SKiDL is a module that extends Python with the ability to design electronic circuits.
https://devbisme.github.io/skidl/
MIT License
994 stars 118 forks source link

Some 74xx parts don't load #184

Open 2e0byo opened 1 year ago

2e0byo commented 1 year ago

Describe the bug Some parts in the 74xx library (6.0.11) load fine. Others refuse to load.

Of those which do load I'm surprised to see duplicated pins. Does SKIDL handle inherited parts?

To Reproduce

from skidl import Part
p = Part("74xx", "74LS03")
print(p) # prints part, albeit with duplicate pins
assert len p[6] == 1, "Duplicate pins!"
p = Part("74xx", "74LS04")
assert len p.pins, "No pins at all!"
print(p)

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

2e0byo commented 1 year ago

kicad 5 libraries (5.1.12) work. We need some unit-tests methinks. I'll see if I've got some space to write any in a few weeks.