MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _doTime

Function _doTime

SLiCAP/SLiCAPexecute.py:943–965  ·  view source on GitHub ↗

Calculates the inverse Laplace transform of the detector voltage or current. :param instr: SLiCAP instruction object that holds instruction data. :type instr: SLiCAPinstruction.instruction :return: instr of the execution of the instruction. :rtype: SLiCAPinstruction.instructio

(instr)

Source from the content-addressed store, hash-verified

941 return instr
942
943def _doTime(instr):
944 """
945 Calculates the inverse Laplace transform of the detector voltage or current.
946
947 :param instr: SLiCAP instruction object that holds instruction data.
948 :type instr: SLiCAPinstruction.instruction
949
950 :return: instr of the execution of the instruction.
951 :rtype: SLiCAPinstruction.instruction
952 """
953 instr.dataType = 'laplace'
954 instr = _doLaplace(instr)
955 if instr.step:
956 instr.time = []
957 for laplaceinstr in instr.laplace:
958 laplaceinstr = laplaceinstr, ini.laplace
959 instr.time.append(ilt(laplaceinstr, ini.laplace, sp.Symbol('t')))
960 else:
961 laplaceinstr = instr.laplace
962 instr.time = ilt(laplaceinstr, ini.laplace, sp.Symbol('t'))
963 instr.dataType = 'time'
964 instr.dataType = 'time'
965 return instr
966
967def _doSolve(instr):
968 """

Callers 1

_doInstructionFunction · 0.85

Calls 2

iltFunction · 0.90
_doLaplaceFunction · 0.85

Tested by

no test coverage detected