Change some default parameter values

This commit is contained in:
Daniel Rojas 2020-05-29 19:20:10 +02:00
parent 5461cb016d
commit 2dd21ae6aa
2 changed files with 7 additions and 3 deletions

View File

@ -30,16 +30,20 @@ nodes:
wires: wires:
W1: W1:
<<: *wire_i2c <<: *wire_i2c
show_name: false
W2: W2:
<<: *wire_i2c <<: *wire_i2c
show_name: false
W3: W3:
mm2: 0.14 mm2: 0.14
length: 0.2 length: 0.2
colors: [BK, BU, OG, VT] colors: [BK, BU, OG, VT]
show_name: false
W4: W4:
mm2: 0.5 mm2: 0.5
length: 0.35 length: 0.35
colors: [BK, RD] colors: [BK, RD]
show_name: false
connections: connections:
- -

View File

@ -184,8 +184,8 @@ class Node:
gender: str = None gender: str = None
num_pins: int = None num_pins: int = None
pinout: List[Any] = field(default_factory=list) pinout: List[Any] = field(default_factory=list)
show_name: bool = False show_name: bool = True
show_num_pins: bool = False show_num_pins: bool = True
def __post_init__(self): def __post_init__(self):
self.ports_left = False self.ports_left = False
@ -214,7 +214,7 @@ class Cable:
shield: bool = False shield: bool = False
colors: List[Any] = field(default_factory=list) colors: List[Any] = field(default_factory=list)
color_code: str = None color_code: str = None
show_name: bool = False show_name: bool = True
show_pinout: bool = False show_pinout: bool = False
show_num_wires: bool = True show_num_wires: bool = True