Skip to content

Commit

Permalink
Just cachine curated biomodles models
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jan 29, 2025
1 parent 2b8d663 commit a7bd102
Show file tree
Hide file tree
Showing 3 changed files with 1,285 additions and 317,278 deletions.
11 changes: 7 additions & 4 deletions libraries/client/biomodels_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_model_info(model_id):

if __name__ == "__main__":
min_index = 0
max_index = 10
max_index = 10000
index = 1

model_ids = get_model_identifiers()["models"]
Expand All @@ -48,10 +48,13 @@ def get_model_info(model_id):
model_link = f"[{model_id}]({model_url})"
try:
info = get_model_info(model_id)
model_name = info["name"]
print(f" {model_id}: \n {pprint.pformat(info['name'])}--")
if info["curationStatus"] != "CURATED":
print(" **** Not adding, as curationStatus = %s" % info["curationStatus"])
else:
model_name = info["name"]
print(f" {model_id}: \n {pprint.pformat(info['name'])}--")

info_all[model_id] = info
info_all[model_id] = info
except Exception as e:
msg = f"Error retrieving model at {model_url}: {e}"

Expand Down
Loading

0 comments on commit a7bd102

Please sign in to comment.