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

Function _doZeros

SLiCAP/SLiCAPexecute.py:300–320  ·  view source on GitHub ↗

Adds the instr of a zeros 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

298 return instr
299
300def _doZeros(instr):
301 """
302 Adds the instr of a zeros analysis to instr.
303
304 :param instr: SLiCAP instruction object that holds instruction data.
305 :type instr: SLiCAPinstruction.instruction
306
307 :return: instr of the execution of the instruction.
308 :rtype: SLiCAPinstruction.instruction
309 """
310 instr.dataType = "numer"
311 instr.dataType = "numer"
312 instr = _doNumer(instr)
313 if instr.step:
314 for poly in instr.numer:
315 instr.zeros.append(_Roots(poly, ini.laplace))
316 else:
317 instr.zeros = _Roots(instr.numer, ini.laplace)
318 instr.dataType = "zeros"
319 instr.dataType = "zeros"
320 return instr
321
322def _doPZ(instr):
323 """

Callers 1

_doInstructionFunction · 0.85

Calls 2

_RootsFunction · 0.90
_doNumerFunction · 0.85

Tested by

no test coverage detected