lcapy.schematic.Schematic
- class lcapy.schematic.Schematic(filename=None, allow_anon=False, **kwargs)
Bases:
NetfileMixinMethods
__init__([filename, allow_anon])add(string)Add a component to the netlist.
draw([filename])make_graphs([debug])netfile_add(filename)Add the nets from file with specified filename
netlist()Return the current netlist
pdb()Enter the python debugger.
tikz_draw(filename, **kwargs)- add(string)
Add a component to the netlist. The general form is: ‘Name Np Nm args’ where Np is the positive node and Nm is the negative node.
A positive current is defined to flow from the positive node to the negative node.
- draw(filename=None, **kwargs)
- Parameters:
filename – The name of the file to produce. If None, the schematic is displayed on the screen.
layout – This is either ‘horizontal’, ‘vertical’, or ‘ladder’.
evalf – This can be False or an integer specifying the number of decimal places used to evaluate floats.
kwargs – These include:
label_ids (-)
label_values (-)
draw_nodes (-) –
True: show all nodes
False: show no nodes
’primary’: show primary nodes
’connections’: show nodes that connect more than two components
’all’: show all nodes
label_nodes (-) –
True: label all nodes
False: label no nodes
’primary’: label primary nodes
’alpha’: label nodes starting with a letter
’pins’: label nodes that are pins on a chip
’all’: label all nodes
style (-)
scale (-)
node_spacing (-)
cpt_size (-)
dpi (-)
help_lines (-)
debug (-)
Notes
If using Jupyter, then need to first issue command %matplotlib inline
- netfile_add(filename)
Add the nets from file with specified filename
- netlist()
Return the current netlist
- pdb()
Enter the python debugger.