Skip to content

Commit

Permalink
remove is_unique_sdtype
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Sep 6, 2023
1 parent af627b2 commit 24500b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rdt/hyper_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@ def _validate_config(config):
sdtype_keys = sdtypes.keys()
transformer_keys = flatten_column_list(transformers.keys())

is_sdtype_keys_unique = len(sdtype_keys) == len(set(sdtype_keys))
is_transformer_keys_unique = len(transformer_keys) == len(set(transformer_keys))
if not is_sdtype_keys_unique or not is_transformer_keys_unique:
if not is_transformer_keys_unique:
raise InvalidConfigError(
'Error: Invalid config. Please provide unique keys for the sdtypes '
'and transformers.'
Expand Down

0 comments on commit 24500b2

Please sign in to comment.