Added debug for not fitted components

This commit is contained in:
Diego Capusotto 2021-12-21 12:51:31 -03:00
parent 367d80e96c
commit babc9c4ea0
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
# Project: KiBot (formerly KiPlot) # Project: KiBot (formerly KiPlot)
from .registrable import RegFilter, Registrable, RegOutput from .registrable import RegFilter, Registrable, RegOutput
from .optionable import Optionable from .optionable import Optionable
from .gs import GS
from .misc import (IFILT_MECHANICAL, IFILT_VAR_RENAME, IFILT_ROT_FOOTPRINT, IFILT_KICOST_RENAME, DISTRIBUTORS, from .misc import (IFILT_MECHANICAL, IFILT_VAR_RENAME, IFILT_ROT_FOOTPRINT, IFILT_KICOST_RENAME, DISTRIBUTORS,
IFILT_VAR_RENAME_KICOST, IFILT_KICOST_DNP) IFILT_VAR_RENAME_KICOST, IFILT_KICOST_DNP)
from .error import KiPlotConfigurationError from .error import KiPlotConfigurationError
@ -171,6 +172,8 @@ def apply_fitted_filter(comps, filter):
for c in comps: for c in comps:
if c.fitted: if c.fitted:
c.fitted = filter.filter(c) 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): def apply_fixed_filter(comps, filter):