Setups for TO247.

rth_ca and cth_c from On/Fairchild App Note AN-7516, Table 3.

Inherited from Setups (via Package_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 analyzers A setup ID-keyed dict of lists defining analyzers. The first item in each is a subclass of sim.Analyzer or an instance of psim.Analyzer followed by its setup args.
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 weights A dict of weights (real values or single-argument callables) to apply to the value from each vector, keyed by the names found in nameLists. A callable must take two args, the integer ID of the series being evaluated and a 1-D Numpy array of values from the vector, and return a positive real-valued weight.
Class Variable transforms A dict, keyed by the name of a transform-produced vector, of callables that each transform one or more vectors from the Ngspice simulation into a vector listed in nameLists but not included in the Ngspice simulation. The result of the transform (which must be a 1-D Numpy array) will be added to the V object under the name by which the transform is keyed in this dict.
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 _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.

Inherited from Setups (via Package_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 analyzers A setup ID-keyed dict of lists defining analyzers. The first item in each is a subclass of sim.Analyzer or an instance of psim.Analyzer followed by its setup args.
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 weights A dict of weights (real values or single-argument callables) to apply to the value from each vector, keyed by the names found in nameLists. A callable must take two args, the integer ID of the series being evaluated and a 1-D Numpy array of values from the vector, and return a positive real-valued weight.
Class Variable transforms A dict, keyed by the name of a transform-produced vector, of callables that each transform one or more vectors from the Ngspice simulation into a vector listed in nameLists but not included in the Ngspice simulation. The result of the transform (which must be a 1-D Numpy array) will be added to the V object under the name by which the transform is keyed in this dict.
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 _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.
API Documentation for pingspice, generated by pydoctor at 2021-09-18 08:41:11.