Skip to content

Commit

Permalink
Avoid error if transform key does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseEspinosa committed May 6, 2024
1 parent 67c1b62 commit a2b65a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/launch_transform_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main(data_csv, config_json, out_path):

# Transform the data according to what defined in the experiment class and the specifics of the user in the Json
# in case of no transformation specification so when the config has "augmentation" : None just save a copy of the original csv file
if config["transform"]:
if config.get("transform") is not None:
csv_obj.transform(config["transform"])

# save the modified csv
Expand Down

0 comments on commit a2b65a5

Please sign in to comment.