Adds the instr of a pole-zero 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)
| 320 | return instr |
| 321 | |
| 322 | def _doPZ(instr): |
| 323 | """ |
| 324 | Adds the instr of a pole-zero analysis to instr. |
| 325 | |
| 326 | :param instr: SLiCAP instruction object that holds instruction data. |
| 327 | :type instr: SLiCAPinstruction.instruction |
| 328 | |
| 329 | :return: instr of the execution of the instruction. |
| 330 | :rtype: SLiCAPinstruction.instruction |
| 331 | """ |
| 332 | instr.dataType = "laplace" |
| 333 | instr.dataType = "laplace" |
| 334 | instr = _doLaplace(instr) |
| 335 | if instr.step: |
| 336 | for poly in instr.numer: |
| 337 | instr.zeros.append(_Roots(poly, ini.laplace)) |
| 338 | for poly in instr.denom: |
| 339 | instr.poles.append(_Roots(poly, ini.laplace)) |
| 340 | for i in range(len(instr.denom)): |
| 341 | try: |
| 342 | instr.poles[i], instr.zeros[i] = _cancelPZ(instr.poles[i], instr.zeros[i]) |
| 343 | except: |
| 344 | pass |
| 345 | instr.DCvalue.append(_zeroValue(instr.numer[i], instr.denom[i], ini.laplace)) |
| 346 | else: |
| 347 | instr.zeros = _Roots(instr.numer, ini.laplace) |
| 348 | instr.poles = _Roots(instr.denom, ini.laplace) |
| 349 | try: |
| 350 | instr.poles, instr.zeros = _cancelPZ(instr.poles, instr.zeros) |
| 351 | except: |
| 352 | pass |
| 353 | instr.DCvalue = _zeroValue(instr.numer, instr.denom, ini.laplace) |
| 354 | instr.dataType = 'pz' |
| 355 | instr.dataType = 'pz' |
| 356 | return instr |
| 357 | |
| 358 | def _doNoise(instr): |
| 359 | """ |
no test coverage detected