MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _doPoles

Function _doPoles

SLiCAP/SLiCAPexecute.py:278–298  ·  view source on GitHub ↗

Adds the instr of a poles analysis to instr. :param instr: SLiCAP instruction object that holds instruction data. :type instr: SLiCAPinstruction.instruction :return: instr of the execution of the instruction. :rtype: SLiCAPinstruction.instruction

(instr)

Source from the content-addressed store, hash-verified

276 return instr
277
278def _doPoles(instr):
279 """
280 Adds the instr of a poles analysis to instr.
281
282 :param instr: SLiCAP instruction object that holds instruction data.
283 :type instr: SLiCAPinstruction.instruction
284
285 :return: instr of the execution of the instruction.
286 :rtype: SLiCAPinstruction.instruction
287 """
288 instr.dataType = "denom"
289 instr.dataType = "denom"
290 instr = _doDenom(instr)
291 if instr.step:
292 for poly in instr.denom:
293 instr.poles.append(_Roots(poly, ini.laplace))
294 else:
295 instr.poles = _Roots(instr.denom, ini.laplace)
296 instr.dataType = "poles"
297 instr.dataType = "poles"
298 return instr
299
300def _doZeros(instr):
301 """

Callers 1

_doInstructionFunction · 0.85

Calls 2

_RootsFunction · 0.90
_doDenomFunction · 0.85

Tested by

no test coverage detected