pingspice.test.lib.test_diodes.SillyParameterFinder(ParameterFinder)
class documentation
Part of pingspice.test.lib.test_diodes
(View In Hierarchy)
A silly model of an utterly impractical high-current voltage reference using a power diode, a series resistor, and a resistor in parallel with the load to ground.
There are just two parameters, the resistances. The point of this is to
demonstrate that a subcircuit based on a ParameterFinder
can work inside another ParameterFinder
so long as the inner one has its finderParams dict defined.
Method | setup | Undocumented |
Method | setupTestCircuit | Sets up the test circuit for parameter finding. |
Inherited from ParameterFinder:
Class Variable | Setups | A subclass of Setups
that you define to specify parameter names, analyzers, independent vectors,
goal points, etc. |
Instance Variable | s | An instance that I construct of the Setups
subclass referenced in your subclass of me. |
Method | __init__ | There are two different call patterns. One is for using Differential Evolution to find parameter values: |
Method | __getattr__ | Looks to my subcircuit "parent" and then my Setups
object s for attributes that I lack. |
Method | tableSources | Called by analyzerPrep
for each setup ID to possibly generate one or more TABLE
sources. |
Method | analyzerPrep | Call this with a setup ID to provide what the
Analyzer for that setup will need when it is activated. |
Method | __call__ | Call this to find best-fit alterable values for the circuit you've
defined with your setup
override method. |
Class | _EmptySetups | Undocumented |
Method | __init_pf | My constructor calls this to do the full initialization in paramfinding mode, when no parameters are supplied. |