I offer ways of getting goal and simulated data from Run objects.

Construct me with a set (perhaps empty) of canonical names of vectors with log values. I'll convert those to linear space whenever you access them with a call to getValue.

Method __init__ Data(logValues)
Method setup Sets up my instance with data from a new Run object run.
Method getValue With a analysis.sim.Vectors instance and a vector name, returns the simulation vector, log-transformed if the name is in my Plotter object's logValues set.
Method getLimits Returns a 1-D Numpy array of indices for items in the supplied vector X that are inside or just a little bit outside the limits specified with Xmin and Xmax.
Method maybeNegative Returns the sign of name with its sign character "-" (if any) stripped off.
Method vector Returns a subset of items of the simulation vector with the specified name.
Method goal Returns a subset of items of the column vector in my goal array X for the current run corresponding to the specified name, with items (optionally) selected by index array K.
def __init__(self, logValues):

Data(logValues)

def setup(self, run):

Sets up my instance with data from a new Run object run.

Returns the length of the column vectors in my X goals array. (Not the number of columns.)

def getValue(self, container, name, k=None):

With a analysis.sim.Vectors instance and a vector name, returns the simulation vector, log-transformed if the name is in my Plotter object's logValues set.

With a 2-D goal points array, a vector name, and a column index k, returns a 1-D array of goal points for that vector. No log transformation is done because analysis.param.Setups does that at the outset when preparing its X array.

ParameterskSet to the index of a column of the container (only for an array) to select just a single column vector.
def getLimits(self, X, Xmin, Xmax):

Returns a 1-D Numpy array of indices for items in the supplied vector X that are inside or just a little bit outside the limits specified with Xmin and Xmax.

def maybeNegative(self, name):

Returns the sign of name with its sign character "-" (if any) stripped off.

def vector(self, name, K=None):

Returns a subset of items of the simulation vector with the specified name.

If an index array K is supplied, selects the subset of the vector with those indices.

If name is preceded by a "-" character, the values will be inverted, i.e., negated.

def goal(self, name, K=None):

Returns a subset of items of the column vector in my goal array X for the current run corresponding to the specified name, with items (optionally) selected by index array K.

The name is looked up in my nameList for the current run and the position where the name appears is used as the column index.

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