forked from johnbeard/kiplot
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Added] Templates to generate testpoint reports
Related to #638
- Loading branch information
Showing
15 changed files
with
226 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
kibot/resources/config_templates/Testpoints_by_attr.kibot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Testpoints selected by fabrication attribute | ||
kibot: | ||
version: 1 | ||
|
||
filters: | ||
- name: _separate_pins_for_tp | ||
comment: "Separate pins with testpoint as fabrication attribute" | ||
type: separate_pins | ||
|
||
outputs: | ||
- name: _testpoints_attr@_KIBOT_IMPORT_ID@ | ||
comment: "Testpoints report by fabrication attribute" | ||
type: bom | ||
dir: @_KIBOT_IMPORT_DIR@ | ||
options: | ||
pre_transform: @_KIBOT_PRE_TRANSFORM@ | ||
exclude_filter: @_KIBOT_EXCLUDE_FILTER@ | ||
dnf_filter: @_KIBOT_DNF_FILTER@ | ||
exclude_marked_in_sch: false | ||
group_fields: [] | ||
sort_style: ref | ||
use_aux_axis_as_origin: true | ||
ignore_dnf: false | ||
format: @_KIBOT_TESTPOINTS_FORMAT@ | ||
xlsx: | ||
logo_scale: 1.7 | ||
csv: | ||
hide_pcb_info: true | ||
hide_stats_info: true | ||
footprint_type_values: 'SMT,THRU,' | ||
columns: | ||
- field: Row | ||
name: '' | ||
- field: References | ||
name: Source | ||
- field: Net Name | ||
name: Net | ||
- field: Net Class | ||
- field: Footprint Side | ||
name: Side | ||
- field: Footprint X | ||
name: X-Loc | ||
- field: Footprint Y | ||
name: Y-Loc | ||
- field: Footprint Type | ||
name: Pad Type | ||
|
||
... | ||
definitions: | ||
_KIBOT_IMPORT_ID: '' | ||
_KIBOT_IMPORT_DIR: 'Testpoints' | ||
_KIBOT_PRE_TRANSFORM: ['_kicost_rename', '_separate_pins_for_tp'] | ||
_KIBOT_DNF_FILTER: '_null' | ||
_KIBOT_EXCLUDE_FILTER: '_null' | ||
_KIBOT_TESTPOINTS_FORMAT: 'XLSX' |
9 changes: 9 additions & 0 deletions
9
kibot/resources/config_templates/Testpoints_by_attr_CSV.kibot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Testpoints selected by fabrication attribute | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_attr | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_csv' | ||
_KIBOT_TESTPOINTS_FORMAT: CSV |
9 changes: 9 additions & 0 deletions
9
kibot/resources/config_templates/Testpoints_by_attr_HTML.kibot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Testpoints selected by fabrication attribute | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_attr | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_html' | ||
_KIBOT_TESTPOINTS_FORMAT: HTML |
58 changes: 58 additions & 0 deletions
58
kibot/resources/config_templates/Testpoints_by_value.kibot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Testpoints selected by value | ||
kibot: | ||
version: 1 | ||
|
||
filters: | ||
- name: _separate_testpoints | ||
comment: "Separate components with value starting with `TestPoint`" | ||
type: generic | ||
include_only: | ||
- column: Value | ||
regex: "^TestPoint" | ||
|
||
outputs: | ||
- name: _testpoints_value@_KIBOT_IMPORT_ID@ | ||
comment: "Testpoints report by value" | ||
type: bom | ||
dir: @_KIBOT_IMPORT_DIR@ | ||
options: | ||
pre_transform: @_KIBOT_PRE_TRANSFORM@ | ||
exclude_filter: @_KIBOT_EXCLUDE_FILTER@ | ||
dnf_filter: @_KIBOT_DNF_FILTER@ | ||
exclude_marked_in_sch: false | ||
group_fields: [] | ||
sort_style: ref | ||
use_aux_axis_as_origin: true | ||
ignore_dnf: false | ||
format: @_KIBOT_TESTPOINTS_FORMAT@ | ||
xlsx: | ||
logo_scale: 1.7 | ||
csv: | ||
hide_pcb_info: true | ||
hide_stats_info: true | ||
footprint_type_values: 'SMT,THRU,' | ||
columns: | ||
- field: Row | ||
name: '' | ||
- field: References | ||
name: Source | ||
- field: Net Name | ||
name: Net | ||
- field: Net Class | ||
- field: Footprint Side | ||
name: Side | ||
- field: Footprint X | ||
name: X-Loc | ||
- field: Footprint Y | ||
name: Y-Loc | ||
- field: Footprint Type | ||
name: Pad Type | ||
|
||
... | ||
definitions: | ||
_KIBOT_IMPORT_ID: '' | ||
_KIBOT_IMPORT_DIR: 'Testpoints' | ||
_KIBOT_PRE_TRANSFORM: '_kicost_rename' | ||
_KIBOT_DNF_FILTER: '_null' | ||
_KIBOT_EXCLUDE_FILTER: '_separate_testpoints' | ||
_KIBOT_TESTPOINTS_FORMAT: 'XLSX' |
9 changes: 9 additions & 0 deletions
9
kibot/resources/config_templates/Testpoints_by_value_CSV.kibot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Testpoints selected by value | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_value | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_csv' | ||
_KIBOT_TESTPOINTS_FORMAT: CSV |
9 changes: 9 additions & 0 deletions
9
kibot/resources/config_templates/Testpoints_by_value_HTML.kibot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Testpoints selected by value | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_value | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_html' | ||
_KIBOT_TESTPOINTS_FORMAT: HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_attr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_attr_CSV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_attr_HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_value_CSV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: Testpoints_by_value_HTML |