Skip to content

Commit

Permalink
debug
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 Nov 23, 2022
1 parent cd3191b commit 1fc9044
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/calculate_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ def main():

# Allow developer to provide tags in root
for filename in recursive_find(os.path.join(root), ".json"):
# json files at the root are not valid
dirname = os.path.dirname(filename)
if dirname == root:
# json files at the root are not valid
if os.path.basename(filename) in ['skips.json', 'counts.json']:
print(f"Skipping {filename}")
continue
aliases = read_json(filename)
Expand All @@ -93,7 +92,9 @@ def main():
counts[alias] += 1

counts = collections.OrderedDict(sorted(counts.items()))
write_json(counts, os.path.join(root, "counts.json"))
counts_file = os.path.join(root, "counts.json")
print(f'Writing counts to {counts_file}')
write_json(counts, counts_file)


if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions scripts/update_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def main():
print(f"Retrieving tags for {image}")
tags = requests.get(f"https://crane.ggcr.dev/ls/quay.io/biocontainers/{image}")
tags = [x for x in tags.text.split("\n") if x]
print(tags)
uris[image] = tags

# If we couldn't get tags, add to skips and continue
Expand Down

0 comments on commit 1fc9044

Please sign in to comment.