From babc9c4ea0106aac6901f63e92e1b340027dd26e Mon Sep 17 00:00:00 2001 From: Diego Capusotto Date: Tue, 21 Dec 2021 12:51:31 -0300 Subject: [PATCH] Added debug for not fitted components --- kibot/fil_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kibot/fil_base.py b/kibot/fil_base.py index 75f078af..249dfd34 100644 --- a/kibot/fil_base.py +++ b/kibot/fil_base.py @@ -5,6 +5,7 @@ # Project: KiBot (formerly KiPlot) from .registrable import RegFilter, Registrable, RegOutput from .optionable import Optionable +from .gs import GS from .misc import (IFILT_MECHANICAL, IFILT_VAR_RENAME, IFILT_ROT_FOOTPRINT, IFILT_KICOST_RENAME, DISTRIBUTORS, IFILT_VAR_RENAME_KICOST, IFILT_KICOST_DNP) from .error import KiPlotConfigurationError @@ -171,6 +172,8 @@ def apply_fitted_filter(comps, filter): for c in comps: if c.fitted: c.fitted = filter.filter(c) + if not c.fitted and GS.debug_level > 2: + logger.debug('- Not fit: '+c.ref) def apply_fixed_filter(comps, filter):