Re-format code
oops
This commit is contained in:
parent
544e009bcb
commit
eaf57a81bc
@ -47,10 +47,19 @@ with open(filename, 'r') as stream:
|
|||||||
h = wireviz.Harness()
|
h = wireviz.Harness()
|
||||||
# add nodes
|
# add nodes
|
||||||
for k, o in input['nodes'].items():
|
for k, o in input['nodes'].items():
|
||||||
h.add_node(k, type=o.get('type'), gender=o.get('gender'), num_pins=o.get('num_pins'), pinout=o.get('pinout'))
|
h.add_node(k, type=o.get('type'),
|
||||||
|
gender=o.get('gender'),
|
||||||
|
num_pins=o.get('num_pins'),
|
||||||
|
pinout=o.get('pinout'))
|
||||||
# add wires
|
# add wires
|
||||||
for k, o in input['wires'].items():
|
for k, o in input['wires'].items():
|
||||||
h.add_cable(k, mm2=o.get('mm2'), length=o.get('length'), num_wires=o.get('num_wires'), color_code=o.get('color_code'), shield=o.get('shield'))
|
h.add_cable(k, mm2=o.get('mm2'),
|
||||||
|
awg=o.get('awg'),
|
||||||
|
length=o.get('length'),
|
||||||
|
num_wires=o.get('num_wires'),
|
||||||
|
colors=o.get('colors'),
|
||||||
|
color_code=o.get('color_code'),
|
||||||
|
shield=o.get('shield'))
|
||||||
# add connections
|
# add connections
|
||||||
conlist = input['connections']
|
conlist = input['connections']
|
||||||
for con in conlist:
|
for con in conlist:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user