This shows you the differences between two versions of the page.
gnucap:user:gnucap_python [2018/12/06 13:39] felixs 0.0.2 |
gnucap:user:gnucap_python [2020/05/28 02:53] (current) felixs 0.0.5 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | source code at https://gitlab.com/gnucap/gnucap-python. 0.0.2 relased 12.2018. | + | source code at https://codeberg.org/gnucap/gnucap-python. 0.0.5 relased May 2020. |
A bidirectional python<->gnucap interface | A bidirectional python<->gnucap interface | ||
* based on SWIG, that | * based on SWIG, that | ||
- | * implements gnucap as a python module and | + | * implements a Python interface for Gnucap |
- | * enables gnucap extensions written in python. | + | * enables Gnucap extensions (components, algorithms..) in Python. |
=== applications === | === applications === | ||
Line 11: | Line 11: | ||
== optimisation == | == optimisation == | ||
- | quickly replace things like ASCO. | + | quickly replace things like ASCO. Examples provided are |
* inv.py: optimise an inverter circuit (e.g. power consumption) while meeting some specs (such as timing) | * inv.py: optimise an inverter circuit (e.g. power consumption) while meeting some specs (such as timing) | ||
Line 18: | Line 18: | ||
== command plugins == | == command plugins == | ||
- | spice commands with a few lines of python | + | Gnucap runs commands interactively. Such commands can now be implemented with a few lines of python |
- | * pz_spice.py: find poles and zeroes using scipy.linalg | + | * pz_spice.py: find poles and zeroes using scipy.linalg. |
+ | * s_sparam.py: sparam analysis command. | ||
+ | * c_nodeset.py: a nodeset command |