This is identical to RLC_Setups in rlc-04.py except that there is now a constraint.

Method analyzers Undocumented
Method weights Undocumented
Method transforms Undocumented

Inherited from Setups:

Class Variable goals Text or a text file defining the device's performance goals. Parsed by DataParser.
Class Variable specs Text or a text file defining the device's specifications. Parsed by SpecsParser.
Class Variable EvalHelper A class with a constructor that takes a Specs instance as its sole argument. I automatically construct it right away if you define the class and you can refer to the instance via my eh attribute.
Class Variable nameLists A dict of lists of vector names to retrieve after each analysis, each keyed by setup ID.
Class Variable plotSpecs (Optional) A setup ID-keyed dict of plot specificiations, if parameter-fit plotting is desired. For each setup: None if no plot for that setup, or a list with:

[<plot title>, <x-axis vector name>, <y-axis vector name(s)>]

Class Variable independents A setup ID-keyed dict of lists of names of the vectors that are independent variables.
Class Variable Xs A setup ID-keyed dict of lists of goals that were not otherwise defined with goals. Items can be either a 2-D Numpy array of expected goal values or a callable. An array must have one column for each vector name listed in the nameLists list for that setup. A callable must accept the vectors named in the nameLists list as 1-D Numpy arrays and return a real-valued sum-of-squared error based on how closely the values in those vectors conform to some user-defined goal. If there is no Xs entry for a given setup ID (after I populate it from parsing goals, no analysis for that setup will be included.
Class Variable logValues A set of vector names that should be evaluated and plotted in log space rather than linear. I will log-transform any goal points in X corresponding to such vector names. It's up to whoever uses me to do the same log transformation on simulation results.
Class Variable defaultSpecs A dict of default values for attributes that don't appear in a given subclass's specs.
Instance Variable netlists A setup ID-keyed dict of netlist file paths or text. Usually populated by ParameterFinder.
Class Method setdefaults Examines my class (or subclass), or an object if supplied as a sole argument, for attributes named in my defaultSpecs dict. Those not found are set to the default values.
Method __init__ Setups(**kw)
Method __contains__ I contain a setup ID if it's for a setup I run.
Method __len__ My length is the number of setups I run.
Method __iter__ I iterate over my setup IDs. You can change my IDs attribute during iteration if you want.
Method __getstate__ For pickling during wire evaluation.
Method __setstate__ For unpickling during wire evaluation.
Method setup Override this if you want custom setup at the beginning of my standard setup, right after setdefaults gets called and an EvalHelper instance is constructed.
Method _setupDicts Called by my constructor with a Specs object to replace any dict-producing callable attributes with their results.
Method _prune Called by my constructor to get (1) a sorted copy of my class-wide IDs list and (2) a pruned version of nameLists containing just entries for the enabled IDs.
Method _checkWeights Called by my constructor to make sure my weights dict is legit.
Method _finalizeXs Called by my constructor to finalize the setting up of a dict of evaluation goals, one Numpy 2-D array or callable evaluator per setup ID.
def analyzers(self, s):
def weights(self, s):
def transforms(self, s):
API Documentation for pingspice, generated by pydoctor at 2021-09-18 08:41:11.