I hold all the information needed to specify evaluations for a given setup.

Construct me with the following arguments:

  1. Integer setup ID,
  2. List nameList of vector names,
  3. List indieFlags of bools, one for each vector name, indicating if its vector is independent.
  4. Set logValues (possibly empty) of vector names that are to be evaluated in log space rather than linear.

You will need to run my setupX method before using the instance. If I'm not using a callable goal, you also need to run setWeights.

See AlsoErrorTabulator.add.
Instance Variable ivm An instance of IV_Manager that manages records about the independent vectors for my setup's goal points.
Method __init__ Undocumented
Method __repr__ Undocumented
Method canInterpolate Returns True if you can use interpolation-based SSE calculation for my setup.
Method setupX Evaluator.setup calls this with a reference X to a goal callable or 2-D array of goal points and a reference q to its local task queue.
Method setWeights Call this with a dict of weights, one entry keyed by each name in my nameList.
ivm =
An instance of IV_Manager that manages records about the independent vectors for my setup's goal points.
def __init__(self, ID, nameList, indieFlags, logValues):
Undocumented
def __repr__(self):
Undocumented
def canInterpolate(self):

Returns True if you can use interpolation-based SSE calculation for my setup.

See AlsoIV_Manager.
def setupX(self, X, q=None):

Evaluator.setup calls this with a reference X to a goal callable or 2-D array of goal points and a reference q to its local task queue.

I set my X attribute to the goal object. I will set my q attribute to the queue if the goal is callable and doesn't return a deferred result. That way the goal can run in a thread without blocking.

If the callable says it returns a Deferred by having a dr attribute set True, then I will leave the q attribute at None and trust that the callable won't block.

If there is no goal for my setup, set the X arg to None, although that seems kind of pointless.

def setWeights(self, weights):

Call this with a dict of weights, one entry keyed by each name in my nameList.

If there isn't an entry for a particular name, it will be given a default weight of one.

If the entry is a callable, it must accept an integer ID and scalar values of its vector and return a scalar weight. In a one-time setup operation, I will call it with my ID and each goal value of its vector, and assign a weight to that goal value for my setup.

Returns a string describing the weights.

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