From 1230e022ed8e9f37f7f346d972cf97b011d28e48 Mon Sep 17 00:00:00 2001 From: Fabiana <30911746+fabclmnt@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:56:12 +0100 Subject: [PATCH] fix: linter issues --- src/ydata/sdk/synthesizers/anonymizer.py | 2 +- src/ydata/sdk/synthesizers/synthesizer.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ydata/sdk/synthesizers/anonymizer.py b/src/ydata/sdk/synthesizers/anonymizer.py index 6c38cdf0..41e9e6f4 100644 --- a/src/ydata/sdk/synthesizers/anonymizer.py +++ b/src/ydata/sdk/synthesizers/anonymizer.py @@ -5,7 +5,7 @@ from ydata.datascience.common import AnonymizerType -def built_and_validate_anonimization(anonimyze: dict, cols: list) -> dict: +def build_and_validate_anonimization(anonimyze: dict, cols: list) -> dict: isnested = any(isinstance(i, dict) for i in anonimyze.values()) if not all([True if k in cols else False for k in list(anonimyze.keys())]): diff --git a/src/ydata/sdk/synthesizers/synthesizer.py b/src/ydata/sdk/synthesizers/synthesizer.py index 89d216f6..c2929ec8 100644 --- a/src/ydata/sdk/synthesizers/synthesizer.py +++ b/src/ydata/sdk/synthesizers/synthesizer.py @@ -26,7 +26,7 @@ from ydata.sdk.synthesizers._models.status import PrepareState, Status, TrainingState from ydata.sdk.synthesizers._models.synthesizer import Synthesizer as mSynthesizer from ydata.sdk.synthesizers._models.synthesizers_list import SynthesizersList -from ydata.sdk.synthesizers.anonymizer import built_and_validate_anonimization +from ydata.sdk.synthesizers.anonymizer import build_and_validate_anonimization from ydata.sdk.utils.model_mixin import ModelFactoryMixin @@ -248,7 +248,7 @@ def _fit_from_datasource( if anonymize is not None: # process and validated the anonymization config shared by the end user - anonymize = built_and_validate_anonimization( + anonymize = build_and_validate_anonimization( anonimyze=anonymize, cols=[col.name for col in X.metadata.columns]) payload["extraData"]["anonymize"] = anonymize if condition_on is not None: