Prototype (sub)circuit object.
| 14 | from SLiCAP.SLiCAPmath import _checkExpression, fullSubs |
| 15 | |
| 16 | class circuit(object): |
| 17 | """ |
| 18 | Prototype (sub)circuit object. |
| 19 | """ |
| 20 | def __init__(self): |
| 21 | """ |
| 22 | Initialization of the circuit object, see description above. |
| 23 | """ |
| 24 | self.title = None |
| 25 | """ |
| 26 | Title (*str*) of the circuit. Defautls to None. |
| 27 | """ |
| 28 | |
| 29 | self.file = None |
| 30 | """ |
| 31 | Name (*str*) of the netlist file. Defaults to None. |
| 32 | """ |
| 33 | |
| 34 | self.subCKT = False |
| 35 | """ |
| 36 | (*bool*) True if the circuit is a sub circuit. Defaults to False. |
| 37 | """ |
| 38 | |
| 39 | self.elements = {} |
| 40 | """ |
| 41 | (*dict*) with key-value pairs: |
| 42 | |
| 43 | - key: Reference designator (*str*) of the element. |
| 44 | - value: Element object (*SLiCAPprotos.element*) |
| 45 | """ |
| 46 | |
| 47 | self.nodes = [] |
| 48 | """ |
| 49 | (*list*) with names (*str*) of circuit nodes. |
| 50 | """ |
| 51 | |
| 52 | self.params = {} |
| 53 | """ |
| 54 | - If SLiCAPcircuit.subCKT == True: |
| 55 | |
| 56 | (*dict*) with key-value pairs: |
| 57 | |
| 58 | - key: Name (*sympy.core.symbol.Symbol*) of a parameter that can be passed to the |
| 59 | sub circuit. |
| 60 | - value: Default value (*sympy object*, float, int) of the parameter. |
| 61 | |
| 62 | - Else: |
| 63 | |
| 64 | - (*list*) with names (*sympy.core.symbol.Symbol*) of undefined parameters. |
| 65 | """ |
| 66 | |
| 67 | self.parDefs = {} |
| 68 | """ |
| 69 | (*dict*) with key-value pairs: |
| 70 | |
| 71 | - key: Name (*sympy.core.symbol.Symbol*) of a circuit parameter. |
| 72 | - value: Value (*sympy object*, float, int) of the parameter. |
| 73 | """ |
no outgoing calls
no test coverage detected