compose: Ensure reproducible order

This commit is contained in:
Jules Aguillon 2024-07-21 23:14:31 +02:00
parent 84e10e0470
commit 1af35f17d0
2 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ public final class ComposeKeyData
total_sequences = 0 total_sequences = 0
tries = {} # Orderred dict tries = {} # Orderred dict
for fname in sys.argv[1:]: for fname in sorted(sys.argv[1:]):
tname, _ = os.path.splitext(os.path.basename(fname)) tname, _ = os.path.splitext(os.path.basename(fname))
sequences = parse_sequences_file(fname) sequences = parse_sequences_file(fname)
add_sequences_to_trie(sequences, tries.setdefault(tname, {})) add_sequences_to_trie(sequences, tries.setdefault(tname, {}))