I'm back from vacation, sorry about the late reply.
I haven't yet tried PyLab Works but there is great potential to
improve usability of pycircuit.
How is pycircuit integrated with PyLab Work? Does it allow you to
create pycircuit object by drawing a circuit schematics interactively?
Do you think it would be possible to use the post-processing
capabilities of pycircuit together with Pylab Works? I could imagine
that the waveform objects can be useful.
The plots on the screenshots look great and currently there is no
waveform viewer for pycircuit.
> I was just playing a little with PyCircuit, to get both the numerical
> and symbolic output of the RC-filter, when my eye felt on the
> redundancy in the declarations and I wonder if this redundancy can't
> be reduced (without sacrifying the enormuous flexibility, probably
> available in PyCircuit).
>
> Especially the following declarations:
> cir['R1'] = R(1, 2, r=1e3)
> cir2['R1'] = R(1, 2, r=Symbol('R1'))
> the first one contains 3 times "R" and the second one even 4 times.
>
> As an experiment I wrote a little wrapper-class,
> and with this wrapper-class you can write
> all 3 examples with the code given below.
>
> What am I throwing away, by using this wrapper-class ?
I agree that this way is much simpler syntax and should be included as
an alternative to the more flexible present way. The obvious
difference is the flexibility of adding custom names and custom models
like:
cir['Lseries'] = myL(1, 2, l=1e-9)
To make your solution even shorter one could set the parameters of
basic circuit elements to Symbol(instancename) when the symbolic
toolkit is used.
> Another point (maybe a buggy),
> I suppose that the circuit.default_toolkit is only used when you don't
> specify a toolkit explicty in a class initialisation or function call.
> This works well for symbolic definitions of components (if the circuit
> is explictly generated with the symbolic toolkit), but calling
> TwoPortAnalysis (with an explict parameter toolkit = symbolic, on a
> symbolic circuit ) doesn't work. To get it working you have to specify
> circuit.default_toolkit = symbolic).
This must be a bug, I will have look at it. Thanks for reporting it.
I would like to try your circuit wrapper and the latest version of
PyLab works. Is there a git or svn repo with the development version?
Best regards,
Henrik
Right now it's not many models except for the basic linear components.
There is a linear MOS transistor and a very simple diode model. But
there will be more models in the future. We also have a long term goal
of supporting verilog-a models.
Cheers,
Henrik