Skip to content

Commit

Permalink
ensure counts and skips are sorted (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Oct 26, 2022
1 parent 1a94718 commit 511266c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/calculate_frequency.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

import collections
import argparse
import os
import json
Expand Down Expand Up @@ -84,6 +85,7 @@ def main():
counts[alias] = 0
counts[alias] += 1

counts = collections.OrderedDict(sorted(counts.items()))
write_json(counts, os.path.join(root, "counts.json"))


Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/update_biocontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ def main():
for path in glob.glob("/tmp/guts*"):
shutil.rmtree(path)
# Save as we go
shpc.utils.write_json(list(skips), skips_file)
shpc.utils.write_json(sorted(list(skips)), skips_file)

# Write skips back to file for faster parsing
shpc.utils.write_json(list(skips), skips_file)
shpc.utils.write_json(sorted(list(skips)), skips_file)


def include_path(path):
Expand Down

0 comments on commit 511266c

Please sign in to comment.