Remove unused attribute Remove unused `&&` in GitHub workflow Remove duplicate `category` attribute Removed from `Connector` class since it is already defined in the `Component` superclass. Remove unnecessary casting of `int` to `float` https://github.com/wireviz/WireViz/pull/251#discussion_r1359000766 Continue work on BOM handling (WIP)
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
connectors:
|
|
X1:
|
|
type: No additional components
|
|
pincount: 6
|
|
|
|
X2:
|
|
type: Contains additional components
|
|
pincount: 6
|
|
additional_components:
|
|
- type: One, no unit
|
|
- type: Two kilometers
|
|
amount: 2 km
|
|
- type: Takes pincount times seven
|
|
qty: 7
|
|
qty_multiplier: pincount
|
|
- type: Takes 10 mm per populated pin
|
|
amount: 10 mm
|
|
qty_multiplier: populated
|
|
- type: Takes number of connections
|
|
qty_multiplier: connections
|
|
|
|
cables:
|
|
C1:
|
|
type: Containts additional components
|
|
wirecount: 4
|
|
length: 1.5
|
|
color_code: DIN
|
|
additional_components:
|
|
- type: One
|
|
- type: Three centimeters
|
|
amount: 3 cm
|
|
- type: Takes wirecount times two
|
|
qty: 2
|
|
qty_multiplier: wirecount
|
|
- type: Takes length times three
|
|
qty: 3
|
|
# adding amount here should cause error because the length already has a unit
|
|
qty_multiplier: length
|
|
- type: Takes total length times three
|
|
qty: 2
|
|
# adding amount here should cause error because the length already has a unit
|
|
qty_multiplier: total_length
|
|
|
|
W2:
|
|
category: bundle
|
|
wirecount: 2
|
|
colors: [tomato, skyblue]
|
|
|
|
connections:
|
|
- - X1: [1-3]
|
|
- C1: [1-3]
|
|
- X2: [1-3]
|
|
- - X1: [3, 4]
|
|
- W2: [1, 2]
|
|
- X2: [3, 4]
|