From 9c27c8e5655c622b0394a6a40c5d30a7317f13f0 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 13 Jun 2023 10:25:09 -0300 Subject: [PATCH] [Internal templates][Added] Threshold parameter to CheckZoneFill - So we can easilly adjust the tolerated changes --- README.md | 2 ++ docs/README.in | 2 ++ kibot/resources/config_templates/CheckZoneFill.kibot.yaml | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 727574f6..8893a2ef 100644 --- a/README.md +++ b/README.md @@ -5425,6 +5425,8 @@ They include support for: - _diff_cur_pcb_show: Makes a diff between the PCB in memory and the one on disk - _diff_cur_pcb_check: Computes the difference between PCB in memory and the one on disk. Aborts if more than 100 pixels changed. + - Note: The *THRESHOLD* parameter can be used to adjust the number of changed pixels that we tolerate. + Consult the [Definitions during import](#definitions-during-import) section to know about parameters. - [Elecrow](https://www.elecrow.com/): contain fabrication outputs compatible with Elecrow - _Elecrow_gerbers: Gerbers - _Elecrow_drill: Drill files diff --git a/docs/README.in b/docs/README.in index 8be9ab10..2a218877 100644 --- a/docs/README.in +++ b/docs/README.in @@ -1307,6 +1307,8 @@ They include support for: - _diff_cur_pcb_show: Makes a diff between the PCB in memory and the one on disk - _diff_cur_pcb_check: Computes the difference between PCB in memory and the one on disk. Aborts if more than 100 pixels changed. + - Note: The *THRESHOLD* parameter can be used to adjust the number of changed pixels that we tolerate. + Consult the [Definitions during import](#definitions-during-import) section to know about parameters. - [Elecrow](https://www.elecrow.com/): contain fabrication outputs compatible with Elecrow - _Elecrow_gerbers: Gerbers - _Elecrow_drill: Drill files diff --git a/kibot/resources/config_templates/CheckZoneFill.kibot.yaml b/kibot/resources/config_templates/CheckZoneFill.kibot.yaml index c948dfee..45afe8ca 100644 --- a/kibot/resources/config_templates/CheckZoneFill.kibot.yaml +++ b/kibot/resources/config_templates/CheckZoneFill.kibot.yaml @@ -26,7 +26,11 @@ outputs: options: cache_dir: .cache diff_mode: stats - threshold: 100 + threshold: @THRESHOLD@ old: '' old_type: file new_type: current + +... +definitions: + THRESHOLD: 100