Skip to content

Commit

Permalink
Only attempt download of completed tv2 models
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 5eee3b89c1926deb8a7e325a5a5203a435b50d1d
  • Loading branch information
mikeknep committed Jan 22, 2024
1 parent a8a3a08 commit c832c4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gretel_trainer/relational/multi_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,9 @@ def transform_v2(

output_tables = {}
for table, model in self._transforms_train.models.items():
with model.get_artifact_handle("data_preview") as data_preview:
output_tables[table] = pd.read_csv(data_preview)
if table in task.completed:
with model.get_artifact_handle("data_preview") as data_preview:
output_tables[table] = pd.read_csv(data_preview)

self._post_process_transformed_tables(
output_tables=output_tables,
Expand Down

0 comments on commit c832c4f

Please sign in to comment.