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 AlsoFormatter.
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.
def __init__(self):

NameManager()

def __call__(self, name):

Call my instance with a name to get the canonical version of it (which may be the same).

def cnameList(self):

Returns the canonical versions of my names. The list is ordered in the order that names were added with calls to add.

def add(self, nameOrNames, k=None):

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.

ParameterskSet this to an integer to have the name inserted at a specific position in my names list rather than appended.
def isAbs(self, name):

Returns True if the specified name has been added with a call to add and has a '+' prefix, indicating an absolute value.

API Documentation for pingspice, generated by pydoctor at 2021-09-18 08:41:11.