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)
| 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 |
no test coverage detected