diff --git a/ingest/scripts/call_loculus.py b/ingest/scripts/call_loculus.py index cc642f40b..e187a66ce 100644 --- a/ingest/scripts/call_loculus.py +++ b/ingest/scripts/call_loculus.py @@ -483,7 +483,7 @@ def record_factory(*args, **kwargs): if mode == "get-submitted": logger.info("Getting submitted sequences") response = get_submitted(config) - Path(output).write_text(json.dumps(response, indent=4, sort_keys=True), encoding="utf-8") + Path(output).write_text(json.dumps(response, indent=4), encoding="utf-8") if __name__ == "__main__": diff --git a/ingest/scripts/group_segments.py b/ingest/scripts/group_segments.py index 2e129556a..0d2c60d5e 100644 --- a/ingest/scripts/group_segments.py +++ b/ingest/scripts/group_segments.py @@ -238,9 +238,7 @@ def main( metadata[joint_key] = row - Path(output_metadata).write_text( - json.dumps(metadata, indent=4, sort_keys=True), encoding="utf-8" - ) + Path(output_metadata).write_text(json.dumps(metadata, indent=4), encoding="utf-8") logging.info(f"Wrote grouped metadata for {len(metadata)} sequences") count = 0 diff --git a/ingest/scripts/prepare_metadata.py b/ingest/scripts/prepare_metadata.py index 18c971a84..92f6801fd 100644 --- a/ingest/scripts/prepare_metadata.py +++ b/ingest/scripts/prepare_metadata.py @@ -145,7 +145,7 @@ def main( meta_dict = {rec[fasta_id_field]: rec for rec in metadata} - Path(output).write_text(json.dumps(meta_dict, indent=4, sort_keys=True), encoding="utf-8") + Path(output).write_text(json.dumps(meta_dict, indent=4), encoding="utf-8") logging.info(f"Saved metadata for {len(metadata)} sequences")