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

Method execute

SLiCAP/SLiCAPinstruction.py:1876–1902  ·  view source on GitHub ↗

Checks the instruction and executes it if no errors are found. if no errors are found it returns a :class:`allResults` object with the results of the instruction. :return: instruction object with results of the execution :rtype: SLiCAPinstruction.instructio

(self)

Source from the content-addressed store, hash-verified

1874 return
1875
1876 def execute(self):
1877 """
1878 Checks the instruction and executes it if no errors are found.
1879
1880 if no errors are found it returns a :class:`allResults` object with the
1881 results of the instruction.
1882
1883 :return: instruction object with results of the execution
1884 :rtype: SLiCAPinstruction.instruction
1885
1886 >>> # create an instance if a SLiCAP instruction
1887 >>> my_instr = instruction()
1888 >>> # create my_instr.circuit from the netlist 'myFirstRCnetwork.cir'
1889 >>> my_instr.setCircuit('myFirstRCnetwork.cir')
1890 >>> # Assign 'V1' signal source:
1891 >>> my_instr.source = 'V1'
1892 >>> # Assign 'V_out' detector:
1893 >>> my_instr.detector = 'V_out'
1894 >>> # Set the gain type to 'gain'
1895 >>> my_instr.gainType = 'gain'
1896 >>> # Set the data type to 'laplace'
1897 >>> my_instr.dataType = 'laplace'
1898 >>> result = my_instr.execute()
1899 >>> print result.laplace
1900 """
1901 self.check()
1902 return _doInstruction(self)
1903
1904

Callers 1

_executeInstructionFunction · 0.80

Calls 2

checkMethod · 0.95
_doInstructionFunction · 0.90

Tested by

no test coverage detected