Skip to content

Commit

Permalink
Check if not sorting keys resolves the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 18, 2024
1 parent 187a71c commit 1d833f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ingest/scripts/call_loculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
4 changes: 1 addition & 3 deletions ingest/scripts/group_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ingest/scripts/prepare_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 1d833f9

Please sign in to comment.