From 24500b2f82a0cb9c0a021551b20044832d15145c Mon Sep 17 00:00:00 2001 From: R-Palazzo Date: Wed, 6 Sep 2023 10:18:46 +0200 Subject: [PATCH] remove is_unique_sdtype --- rdt/hyper_transformer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rdt/hyper_transformer.py b/rdt/hyper_transformer.py index 9df65b309..68b7f3399 100644 --- a/rdt/hyper_transformer.py +++ b/rdt/hyper_transformer.py @@ -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.'