Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Ijka committed Oct 29, 2024
1 parent 3d265cb commit 2980e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 7 additions & 2 deletions src/syngen/ml/handlers/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,15 @@ def handle(self, **kwargs):
prepared_data = prepared_data.drop(tech_columns, axis=1)
logger.debug(
f"Technical columns "
f"{self.dataset.tech_columns} were dropped"
f"{tech_columns} were dropped"
f" from the generated table"
)
Report().unregister_reporters(self.dataset.table_name)
Report().unregister_reporters(self.table_name)
logger.info(
"Since there were no columns to train on, "
"reports will be not generated "
f"for the table '{self.table_name}'."
)

is_pk = self._is_pk()

Expand Down
6 changes: 0 additions & 6 deletions src/syngen/ml/reporters/reporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,6 @@ def unregister_reporters(cls, table: str):
"""
cls._reporters[table] = list()

logger.info(
"Since there were no columns to train on, "
"reports will be not generated "
f"for the table '{table}'."
)

@classmethod
def clear_report(cls):
"""
Expand Down

0 comments on commit 2980e2e

Please sign in to comment.