impedance.py icon indicating copy to clipboard operation
impedance.py copied to clipboard

generate quality circuit diagrams

Open mdmurbach opened this issue 5 years ago • 6 comments

Have had a few requests for the ability to export a circuit to a pdf/svg/png

After some poking around I think SchemDraw (https://cdelker.bitbucket.io/SchemDraw/SchemDraw.html) seems like a good way to do it

mdmurbach avatar Oct 06 '18 06:10 mdmurbach

scbarton got a pretty sweet draw_circuit function started in #25. Testing more complex functions and documentation could be a great first contributor/Hack Week project.

mdmurbach avatar May 20 '19 15:05 mdmurbach

I have code from our last hack week that mostly implements this. One of the problems is that not all elements are represented in the circuit library in SchemDraw, IIRC. I'll try to make time to review this over the next week. It is also against a nearly one year old fork so that will need to reconciled.

dacb avatar Feb 26 '20 16:02 dacb

Great! Let me know if/how I can help

mdmurbach avatar Feb 27 '20 05:02 mdmurbach

Writing good tests is going to be a challenge.

beckdac avatar Feb 27 '20 05:02 beckdac

Yeah... I could see that.

I think it'd be possible to come up with some edge cases (nested parallel/series elements, etc.) but testing/ensuring that it works globally seems challenging. Maybe we just check the circuit complexity and warn the user if it's beyond a typical (i.e. tested) use case. Realistically, there are physical constraints on what complexity of circuit makes sense if that's helpful.

mdmurbach avatar Feb 27 '20 05:02 mdmurbach

The circuit drawing feature is not yet there in the library, right? or it is that I have an older distribution, Also, can someone tell me what the schedule is for releasing a new distribution of the library on pip (the python package installer).

Yugal0 avatar Aug 19 '23 07:08 Yugal0