Returns a list with names of nodal voltages and branch currents that can be used as detector. :return: list with names of nodal voltages and branch currents :rtype: list :Example: >>> # create an instance if a SLiCAP instruction >>> my_inst
(self)
| 1596 | return self.circuit.indepVars |
| 1597 | |
| 1598 | def depVars(self): |
| 1599 | """ |
| 1600 | Returns a list with names of nodal voltages and branch currents that can |
| 1601 | be used as detector. |
| 1602 | |
| 1603 | :return: list with names of nodal voltages and branch currents |
| 1604 | :rtype: list |
| 1605 | |
| 1606 | :Example: |
| 1607 | |
| 1608 | >>> # create an instance if a SLiCAP instruction |
| 1609 | >>> my_instr = instruction() |
| 1610 | >>> # create my_instr.circuit from the netlist 'myFirstRCnetwork.cir' |
| 1611 | >>> my_instr.setCircuit('myFirstRCnetwork.cir') |
| 1612 | >>> # Obtain a list with names of dependent variables: |
| 1613 | >>> my_instr.depVars() |
| 1614 | ['I_V1', 'V_N001', 'V_out'] |
| 1615 | """ |
| 1616 | depvars = [] |
| 1617 | for var in self.circuit.dep_vars: |
| 1618 | if var != 'V_0': |
| 1619 | depvars.append(var) |
| 1620 | return depvars |
| 1621 | |
| 1622 | def controlled(self): |
| 1623 | """ |