Skip to content

Commit

Permalink
Trial, use a different method to write the YAML file
Browse files Browse the repository at this point in the history
Another trial

Fixedup for the YAML writing method
  • Loading branch information
JintaoWu98 committed Oct 22, 2023
1 parent d62bcf6 commit 1388220
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def save_yaml_file(path: str,
if '/' in path and os.path.dirname(path) and not os.path.exists(os.path.dirname(path)):
os.makedirs(os.path.dirname(path))
with open(path, 'w') as f:
f.write(yaml_str)
yaml.dump(content, f)
# f.write(yaml_str)


def from_yaml(yaml_str: str) -> Union[dict, list]:
Expand Down

0 comments on commit 1388220

Please sign in to comment.