[eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness <charles@xxxxxxxxxxxxxxxxxxxxx>
- To: eispice@xxxxxxxxxxxxx
- Date: Thu, 15 Nov 2007 18:06:41 -0500
Hi Thomas,
Something like that could work. I'll play around with it a bit and see if I can
come up with something for the next release.
I'll take a look at doctest; it might make sense, but it kind of makes the code
look ugly. :) So far I've been using the test.sh script in the eispice root
directory to run all of the circuits in the test/regression folder before
releasing a new release. And for my development testing I've been using the
test
scripts in the main section of the various modules, but those could potentially
be moved into doctest strings. I guess they have the added advantage of
appearing in the help as examples.
I'm open to any suggestions for improvements on how to access the data after a
simulation. I'm not completely happy with what I have there either.
Cheers,
Charles
Thomas Traber wrote:
>> What if I add all of the same
>> parameters to the eispice diode model that are in the spice3f5 diode model?
>
> Then we would get into troubles with some other parameters, for
> instance:
> mfg, description, comment, housing, tolerance or something else(?).
> What about the following?
>
> --------------------------------------------------------------------
> class D(subckt.Subckt):
> """Diode Model
> cir.D = D(1, 2, IS = 0.1e-9)
> """
>
> def __init__(self, pNode, nNode, **kwargs):
> if kwargs.has_key("IS"):
> IS = tofloat(kwargs.pop("IS"))
> else:
> IS = 1.0e-14
> ...
> for unhandled in kwargs.keys():
> sys.stderr.write(
> "Unhandled Parameter %s\n"%unhandled)
> --------------------------------------------------------------------
>
>> ...
>> I can make that change and release a new version on the
>> weekend if you'd like.
>
> There is no need to hurry with a new release - AFAIC.
> I would like to suggest DOCTEST strings, but I need to play with it
> first.
> Also I would like to suggest a different interface to access voltages
> and currents. Something like "cir.d1.current" but I want to think about
> it a little more and try it out first.
>
> Ciao,
> Thomas
>
> ------------------------------------------------------------------
> To unsubscribe from the eispice list send an email to:
> eispice-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field
>
------------------------------------------------------------------
To unsubscribe from the eispice list send an email to:
eispice-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field
- References:
- [eispice] Spice Model Converter Experiment
- From: Thomas Traber
- [eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness
- [eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness
- [eispice] Re: Spice Model Converter Experiment
- From: Thomas Traber
- [eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness
- [eispice] Re: Spice Model Converter Experiment
- From: Thomas Traber
Other related posts:
- » [eispice] Spice Model Converter Experiment
- » [eispice] Re: Spice Model Converter Experiment
- » [eispice] Re: Spice Model Converter Experiment
- » [eispice] Re: Spice Model Converter Experiment
- » [eispice] Re: Spice Model Converter Experiment
- » [eispice] Re: Spice Model Converter Experiment
- » [eispice] Re: Spice Model Converter Experiment
- [eispice] Spice Model Converter Experiment
- From: Thomas Traber
- [eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness
- [eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness
- [eispice] Re: Spice Model Converter Experiment
- From: Thomas Traber
- [eispice] Re: Spice Model Converter Experiment
- From: Charles Eidsness
- [eispice] Re: Spice Model Converter Experiment
- From: Thomas Traber