Skip to content

Commit

Permalink
Fixed Parsing Error and added Info print
Browse files Browse the repository at this point in the history
  • Loading branch information
ETHenzlere committed Jul 15, 2024
1 parent 5988799 commit 8b9c554
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/anonymization/src/configuration/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def get_config(self):

if dp_info is not None:

cat = self.__get_column_type("ignore", dp_info)
cat = self.__get_column_type("categorical", dp_info)
ordi = self.__get_column_type("ordinal", dp_info)
ignore = self.__get_column_type("continuous", dp_info)
ignore = self.__get_column_type("ignore", dp_info)

eps = dp_info.get("epsilon", "1.0")
pre_eps = dp_info.get("pre_epsilon", "0.5")
Expand All @@ -77,6 +77,12 @@ def get_config(self):
)
)

print("Parsed the following columns:\n"
+ f"Categorical: {cat}\n"
+ f"Continuous: {cont}\n"
+ f"Ordinal: {ordi}\n"
+ f"Ignored: {ignore}")

column_classes = DPColumnConfig(ignore,cat,cont,ordi)

anon_config = DPConfig(
Expand Down

0 comments on commit 8b9c554

Please sign in to comment.