cdelker / schemdraw

MIT License
103 stars 20 forks source link

AnalogNFet has no drain element #18

Closed davidparent closed 8 months ago

davidparent commented 9 months ago

We were trying to reproduce the 5-transistor OTA. When we get an error: AttributeError: drain not defined in Element

Here is the link to our col-lab code: https://colab.research.google.com/drive/1cwWHiGRlmKUBavCjhQEOL7jpQqm7cqef?usp=sharing

Any help is greatly appreciated.

cdelker commented 9 months ago

I think you copied the example from the development documentation, which will not be supported under schemdraw 0.17 in pypi. Use the example from the stable version.

The difference is a new experimental feature that would automatically add elements to the drawing, so the d += becomes unnecessary. In 0.17, d += or d.add is required to add each element, and the anchor attributes defined only after one of those adds the element to the drawing.

cdelker commented 8 months ago

0.18 was released. Closing this issue.