Skip to content

Commit 016f7ca

Browse files
committed
Remove indent for json and yaml
1 parent 22aff7c commit 016f7ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

amset/core/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def to_file(
513513
data = cast_dict_list(data)
514514

515515
filename = joinpath(directory, f"{prefix}transport{suffix}.{file_format}")
516-
dumpfn(data, filename, indent=4)
516+
dumpfn(data, filename)
517517

518518
elif file_format in ["csv", "txt"]:
519519
# don't write the data as JSON, instead write raw text files

amset/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def write_settings(settings: Dict[str, Any], filename: str):
2222
filename: A filename.
2323
"""
2424
settings = cast_dict_list(settings)
25-
dumpfn(settings, filename, indent=4, default_flow_style=False)
25+
dumpfn(settings, filename)
2626

2727

2828
def load_settings(filename: str) -> Dict[str, Any]:

0 commit comments

Comments
 (0)