def __init__(self, transferMatrices, callback=None): """Constructor @param transferMatrices instance of class TransferMatrices. @param callback (optional) reference to function that takes float percentage used for periodically calling to show progress and allow aborting. @see CallBacker """ self.TransferMatrices = transferMatrices # pragma: silent exclude CallBacker.__init__(self, callback)
def __init__(self, callback=None): """Constructor @param callback a callback function to call during calculation """ self.m_lambda = 1000 self.m_lambdamin = 1e-15 self.m_lambdamax = 1e9 self.m_lambdaMultiplier = 2. self.m_epsilon = 1e-19 self.ccm = FitConvergenceMgr() CallBacker.__init__(self, callback)
def __init__(self, f=None, args=None, callback=None, cacheFileName=None): """constructor frequencies may be provided at construction time (or not for symbolic solutions). @param f (optional) list of frequencies @param args (optional) string arguments for the circuit. @param callback (optional) function taking one argument as a callback @param cacheFileName (optional) string name of file used to cache results @remark Arguments are provided on a line as pairs of names and values separated by a space. The optional callback is used as described in the class CallBacker. """ SystemDescriptionParser.__init__(self, f, args) self.sf = None # pragma: silent exclude CallBacker.__init__(self, callback) LinesCache.__init__(self, 'SParameters', cacheFileName)
def __init__(self, f=None, args=None, callback=None, cacheFileName=None): """constructor frequencies may be provided at construction time (or not for symbolic solutions). @param f (optional) list of frequencies @param args (optional) string arguments for the circuit. @param callback (optional) function taking one argument as a callback. @param cacheFileName (optional) string name of file used to cache results Arguments are provided on a line as pairs of names and values separated by a space. The optional callback is used as described in the class CallBacker. The use of the cacheFileName is described in the class LineCache """ VirtualProbeParser.__init__(self, f, args) self.transferMatrices = None self.m_tm=None # pragma: silent exclude CallBacker.__init__(self,callback) LinesCache.__init__(self,'TransferMatrices',cacheFileName)