Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, config, targets):
"""
Instantiate a new MI operator.
:param config: The wily configuration.
:type config: :class:`WilyConfig`
"""
# TODO : Import config from wily.cfg
logger.debug(f"Using {targets} with {self.defaults} for MI metrics")
self.harvester = harvesters.MIHarvester(targets, config=Config(**self.defaults))