Skip to content

Commit

Permalink
fix: linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fabclmnt committed Sep 6, 2024
1 parent 309b2ee commit 1230e02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ydata/sdk/synthesizers/anonymizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())]):
Expand Down
4 changes: 2 additions & 2 deletions src/ydata/sdk/synthesizers/synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1230e02

Please sign in to comment.