pingspice.analysis.vectors.NameManager(object)
class documentation
Part of pingspice.analysis.vectors
(View In Hierarchy)
I manage your vector names.
This can be a bit of a hassle, considering Ngspice's fussiness. Also, I allow for a '+' prefix in front of a name, which indicates that its absolute value is what the analysis is concerned with.
See Also | Formatter . |
Method | __init__ | NameManager() |
Method | __call__ | Call my instance with a name to get the canonical version of it (which may be the same). |
Method | cnameList | Returns the canonical versions of my names. The list is ordered
in the order that names were added with calls to add . |
Method | add | Adds the the supplied vector name or sequence of names to my list of names. Also adds an entry for the canonical name to my cnames dict, keyed by the original name. |
Method | isAbs | Returns True if the specified name has been added
with a call to add
and has a '+' prefix, indicating an absolute value. |
Call my instance with a name to get the canonical version of it (which may be the same).
Returns the canonical versions of my names. The list is ordered
in the order that names were added with calls to add
.
Adds the the supplied vector name or sequence of names to my list of names. Also adds an entry for the canonical name to my cnames dict, keyed by the original name.
Returns the canonical version(s) of the name(s).
If a name is already present in my list, it will not be added. (But it will have its canonical name registered in my cnames dict; doing that repeatedely does no harm.) Repeated calls with the same argument has no additional effect, even if you specify a different list position k.
Parameters | k | Set this to an integer to have the name inserted at a specific position in my names list rather than appended. |
Returns True
if the specified name has been added
with a call to add
and has a '+' prefix, indicating an absolute value.