diff --git a/changelog.txt b/changelog.txt index 9e010baff..40f8e948e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -23,6 +23,7 @@ Fixed +++++ - ``H5Store.mode`` returns the file mode (#607). + - Formatting of JSON files now matches the changes from synced collections (#645). [1.7.0] -- 2021-06-08 --------------------- diff --git a/signac/synced_collections/backends/collection_json.py b/signac/synced_collections/backends/collection_json.py index ce4caa65b..b64b841c8 100644 --- a/signac/synced_collections/backends/collection_json.py +++ b/signac/synced_collections/backends/collection_json.py @@ -251,7 +251,7 @@ def _load_from_resource(self): def _save_to_resource(self): """Write the data to JSON file.""" # Serialize data - blob = json.dumps(self, cls=SyncedCollectionJSONEncoder).encode() + blob = json.dumps(self, cls=SyncedCollectionJSONEncoder, indent=2).encode() # When write_concern flag is set, we write the data into dummy file and then # replace that file with original file. We also enable this mode # irrespective of the write_concern flag if we're running in