Autofill all

This commit is contained in:
Kelvin Ly 2021-04-03 19:37:18 -04:00
parent f81703dada
commit 40d5b0b093
3 changed files with 22 additions and 9 deletions

View File

@ -67,7 +67,7 @@ def parse_lines(f):
if line.startswith("L"):
parts = quotesplit(line)
component.designator = parts[2].rstrip()
component.cls = itertools.takewhile(lambda c: c.is_alpha(), component.designator)
component.cls = "".join(itertools.takewhile(lambda c: c.isalpha() or c == '#', component.designator))
elif line.startswith("F"):
parts = quotesplit(line)
component.num_fields += 1
@ -87,7 +87,7 @@ def parse_lines(f):
elif line.startswith("$EndComp"):
component_start = False
# ignore power nodes
if component.cls != "#":
if component.cls[0] != "#":
components.append(component)
if line.startswith("$Comp"):

View File

@ -1547,8 +1547,9 @@ U 1 1 61F0D5B5
P 3400 2150
F 0 "L101" H 3430 2190 50 0000 L CNN
F 1 "100 uH" H 3430 2110 50 0000 L CNN
F 2 "" H 3400 2150 50 0001 C CNN
F 2 "Inductor_SMD:L_Bourns_SRR1260" H 3400 2150 50 0001 C CNN
F 3 "~" H 3400 2150 50 0001 C CNN
F 4 "SRR1280-101MCT-ND" H 3400 2150 50 0001 C CNN "Digikey"
1 3400 2150
0 -1 -1 0
$EndComp
@ -2228,8 +2229,9 @@ U 1 1 607C9424
P 13300 7000
F 0 "L103" H 13330 7040 50 0000 L CNN
F 1 "4.7 uH" H 13330 6960 50 0000 L CNN
F 2 "" H 13300 7000 50 0001 C CNN
F 2 "Inductor_SMD:L_Taiyo-Yuden_NR-50xx" H 13300 7000 50 0001 C CNN
F 3 "~" H 13300 7000 50 0001 C CNN
F 4 "587-2407-1-ND" H 13300 7000 50 0001 C CNN "Digikey"
1 13300 7000
0 -1 -1 0
$EndComp
@ -2306,6 +2308,7 @@ F 0 "R111" H 14330 7820 50 0000 L CNN
F 1 "100kR" H 14330 7760 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 14300 7800 50 0001 C CNN
F 3 "~" H 14300 7800 50 0001 C CNN
F 4 "511-1819-1-ND" H 14300 7800 50 0001 C CNN "Digikey"
1 14300 7800
1 0 0 -1
$EndComp
@ -3343,9 +3346,10 @@ L Memory_EEPROM:24LC16 U108
U 1 1 622A1E28
P 6000 5500
F 0 "U108" H 5750 5750 50 0000 C CNN
F 1 "24LC16" H 6050 5750 50 0000 L CNN
F 2 "" H 6000 5500 50 0001 C CNN
F 1 "24LC16BHT-I/ST" H 6050 5750 50 0000 L CNN
F 2 "Package_SO:MSOP-8_3x3mm_P0.65mm" H 6000 5500 50 0001 C CNN
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/21703d.pdf" H 6000 5500 50 0001 C CNN
F 4 "24LC16BHT-I/STCT-ND" H 6000 5500 50 0001 C CNN "Digikey"
1 6000 5500
1 0 0 -1
$EndComp
@ -3635,6 +3639,7 @@ F 0 "R112" H 14430 9370 50 0000 L CNN
F 1 "100kR" H 14430 9310 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 14400 9350 50 0001 C CNN
F 3 "~" H 14400 9350 50 0001 C CNN
F 4 "511-1819-1-ND" H 14400 9350 50 0001 C CNN "Digikey"
1 14400 9350
0 -1 -1 0
$EndComp
@ -3658,6 +3663,7 @@ F 0 "R107" H 13030 8820 50 0000 L CNN
F 1 "100kR" H 13030 8760 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 13000 8800 50 0001 C CNN
F 3 "~" H 13000 8800 50 0001 C CNN
F 4 "511-1819-1-ND" H 13000 8800 50 0001 C CNN "Digikey"
1 13000 8800
0 -1 -1 0
$EndComp
@ -3917,8 +3923,9 @@ U 1 1 63E8333C
P 4400 6150
F 0 "L102" H 4430 6190 50 0000 L CNN
F 1 "100 uH" H 4430 6110 50 0000 L CNN
F 2 "" H 4400 6150 50 0001 C CNN
F 2 "Inductor_SMD:L_Bourns_SRR1260" H 4400 6150 50 0001 C CNN
F 3 "~" H 4400 6150 50 0001 C CNN
F 4 "SRR1280-101MCT-ND" H 4400 6150 50 0001 C CNN "Digikey"
1 4400 6150
0 -1 -1 0
$EndComp

View File

@ -2228,8 +2228,9 @@ U 1 1 607C9424
P 13300 7000
F 0 "L103" H 13330 7040 50 0000 L CNN
F 1 "4.7 uH" H 13330 6960 50 0000 L CNN
F 2 "" H 13300 7000 50 0001 C CNN
F 2 "Inductor_SMD:L_Taiyo-Yuden_NR-50xx" H 13300 7000 50 0001 C CNN
F 3 "~" H 13300 7000 50 0001 C CNN
F 4 "587-2407-1-ND" H 13300 7000 50 0001 C CNN "Digikey"
1 13300 7000
0 -1 -1 0
$EndComp
@ -2306,6 +2307,7 @@ F 0 "R111" H 14330 7820 50 0000 L CNN
F 1 "100kR" H 14330 7760 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 14300 7800 50 0001 C CNN
F 3 "~" H 14300 7800 50 0001 C CNN
F 4 "511-1819-1-ND" H 14300 7800 50 0001 C CNN "Digikey"
1 14300 7800
1 0 0 -1
$EndComp
@ -3635,6 +3637,7 @@ F 0 "R112" H 14430 9370 50 0000 L CNN
F 1 "100kR" H 14430 9310 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 14400 9350 50 0001 C CNN
F 3 "~" H 14400 9350 50 0001 C CNN
F 4 "511-1819-1-ND" H 14400 9350 50 0001 C CNN "Digikey"
1 14400 9350
0 -1 -1 0
$EndComp
@ -3658,6 +3661,7 @@ F 0 "R107" H 13030 8820 50 0000 L CNN
F 1 "100kR" H 13030 8760 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 13000 8800 50 0001 C CNN
F 3 "~" H 13000 8800 50 0001 C CNN
F 4 "511-1819-1-ND" H 13000 8800 50 0001 C CNN "Digikey"
1 13000 8800
0 -1 -1 0
$EndComp
@ -3917,8 +3921,9 @@ U 1 1 63E8333C
P 4400 6150
F 0 "L102" H 4430 6190 50 0000 L CNN
F 1 "100 uH" H 4430 6110 50 0000 L CNN
F 2 "" H 4400 6150 50 0001 C CNN
F 2 "Inductor_SMD:L_Bourns_SRR1260" H 4400 6150 50 0001 C CNN
F 3 "~" H 4400 6150 50 0001 C CNN
F 4 "SRR1280-101MCT-ND" H 4400 6150 50 0001 C CNN "Digikey"
1 4400 6150
0 -1 -1 0
$EndComp
@ -4241,6 +4246,7 @@ F 0 "R114" H 12380 5320 50 0000 L CNN
F 1 "100kR" H 12380 5260 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 12350 5300 50 0001 C CNN
F 3 "~" H 12350 5300 50 0001 C CNN
F 4 "511-1819-1-ND" H 12350 5300 50 0001 C CNN "Digikey"
1 12350 5300
1 0 0 -1
$EndComp