Skip to content

Commit

Permalink
fix (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Dupont authored Jun 22, 2023
1 parent bc3323f commit d51786d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data_gradients/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@


def write_json(path: str, json_dict: Dict):
dirname = os.path.dirname(path)
os.makedirs(dirname, exist_ok=True)
with open(path, "w") as f:
json.dump(json_dict, f, indent=4)

Expand Down

0 comments on commit d51786d

Please sign in to comment.