KiBot/tests/yaml_samples/spec_to_field_1.kibot.yaml

50 lines
1.1 KiB
YAML

kibot:
version: 1
filters:
- name: spec_to_field
type: spec_to_field
comment: 'Copy the RoHS status'
from_output: 'bom_internal'
specs:
- spec: rohs
field: RoHS
- spec: [resistance_tolerance, capacitance_tolerance, _tolerance]
field: Tolerance
type: percent
outputs:
- name: create_sch
comment: "Apply the filter to the Schematic"
type: sch_variant
dir: Modified
options:
pre_transform: spec_to_field
copy_project: true
- name: 'bom_internal'
comment: "BoM with prices, here used to get the specs"
type: bom
dir: KiCost
options:
group_fields: ['digikey#']
columns:
- References
- Part
- Value
- Quantity Per PCB
- field: manf
name: Manufacturer
- field: manf#
name: Manufacturer P/N
- field: digikey#
level: 1
comment: 'Code used to buy the part at Digi-Key'
distributors:
- Mouser
- Digi-Key
xlsx:
kicost: true
specs: true
kicost_config: tests/data/kicost_dk_mou_cache.yaml