Calculates the unit step response of the circuit. This is the inverse Laplace transform of the source-detector transfer divided by the Laplace variable. First it calculates the Laplace transform of the source-detector transfer and subsequently the inverse Laplace Transform.
(instr)
| 909 | return instr |
| 910 | |
| 911 | def _doStep(instr): |
| 912 | """ |
| 913 | Calculates the unit step response of the circuit. This is the inverse |
| 914 | Laplace transform of the source-detector transfer divided by the Laplace |
| 915 | variable. |
| 916 | |
| 917 | First it calculates the Laplace transform of the source-detector transfer |
| 918 | and subsequently the inverse Laplace Transform. |
| 919 | |
| 920 | The Laplace Transform of the source-detector transfer will be stored in the |
| 921 | .laplace attribute of the instr object. |
| 922 | |
| 923 | The unit step response will be stored in the .stepResp attribute of the |
| 924 | instr object. |
| 925 | |
| 926 | :param instr: SLiCAP instruction object that holds instruction data. |
| 927 | :type instr: SLiCAPinstruction.instruction |
| 928 | |
| 929 | :return: instr of the execution of the instruction. |
| 930 | :rtype: SLiCAPinstruction.instruction |
| 931 | """ |
| 932 | instr.dataType = 'laplace' |
| 933 | instr = _doLaplace(instr) |
| 934 | if instr.step: |
| 935 | instr.stepResp = [] |
| 936 | for laplaceinstr in instr.laplace: |
| 937 | instr.stepResp.append(ilt(laplaceinstr, ini.laplace, sp.Symbol('t'), integrate=True)) |
| 938 | else: |
| 939 | instr.stepResp = ilt(instr.laplace, ini.laplace, sp.Symbol('t'), integrate=True) |
| 940 | instr.dataType = 'step' |
| 941 | return instr |
| 942 | |
| 943 | def _doTime(instr): |
| 944 | """ |
no test coverage detected