Skip to content

Commit

Permalink
fix deprecated check
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Dec 13, 2023
1 parent 8f49c94 commit f4f557d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions infores_catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,7 @@ information_resources:
name: SciGraph-Monarch-Ontology
xref:
- scigraph-ontology.monarchinitiative.org/scigraph/docs/
knowledge level: not_provided
knowledge level: other
agent type: not_provided
- id: infores:monarchinitiative
status: released
Expand Down Expand Up @@ -2584,7 +2584,7 @@ information_resources:
name: Psychoactive Drug Screening Program
xref:
- https://github.com/NCATSTranslator/Translator-All/wiki/PDSP
knowledge level: not_provided
knowledge level: other
agent type: not_provided
description: >-
This service provides screening of novel psychoactive compounds for pharmacological and
Expand Down Expand Up @@ -3437,6 +3437,7 @@ information_resources:
xref:
- https://github.com/NCATSTranslator/Translator-All/wiki/SRI-Answer-Appraiser
knowledge level: curated
agent type: not_provided
- id: infores:sri-clinical-evidence-score
status: released
name: SRI Clinical Evidence Score
Expand Down
3 changes: 3 additions & 0 deletions information-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,6 @@ enums:
not_provided:
description: >-
agent type is not provided or known
computational_model:
description: >-
a computational model, such as a machine learning model
2 changes: 1 addition & 1 deletion src/biolink_model/scripts/verify_infores.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def validate(self):
+ " for " + infores.get("name"))
raise ValueError("invalid return code for " + infores.get("name") + " for " + infores.get("id"))

if infores.get("agent type") not in ["not_provided"]:
if infores.get("agent type") not in ["not_provided", "computational_model"]:
print(infores)
print("Invalid infores agent type:" + infores.get("agent type") + " for " + infores.get("name"))
raise ValueError("invalid return code for " + infores.get("name") + " for " + infores.get("id"))
Expand Down

0 comments on commit f4f557d

Please sign in to comment.