Skip to content

Commit

Permalink
remove some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Oct 16, 2023
1 parent 82b6417 commit d227d2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ post-install-commands = [
[tool.hatch.envs.default.scripts]
docs = "mkdocs serve -a localhost:8001 {args}"
fmt = "pre-commit run --all --all-files"
test-prod = "pytest tests/production {args}"
test-dev = "pytest tests/production {args}"
test-ci = "pytest tests/production --server https://openpredict.ci.transltr.io {args}"
test-itrb-prod = "pytest tests/production --server https://openpredict.transltr.io {args}"
test-prod = "pytest tests/production --server https://openpredict.transltr.io {args}"
compile = "pip-compile --extra dev --extra test --extra train -o requirements.txt pyproject.toml"
compile-test = "pip-compile --extra dev --extra test --extra test-prod -o requirements-tests.txt pyproject.toml"
fix-permission = "sudo chown -R $(id -u):$(id -g) models data"
Expand Down
4 changes: 0 additions & 4 deletions src/openpredict_model/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,14 @@ def get_predictions(request: PredictInput) -> PredictOutput:
trapi_to_supported, supported_to_trapi = resolve_ids_with_nodenormalization_api(
request.subjects + request.objects
)
log.info(trapi_to_supported)
log.info(supported_to_trapi)

labelled_predictions = []
for subject in subjects:
supported_subject = trapi_to_supported.get(subject, subject)
log.info(supported_subject)

# classifier: Predict OMIM-DrugBank
# TODO: improve when we will have more classifier
predictions_array = query_omim_drugbank_classifier(supported_subject, request.options.model_id)
log.info(predictions_array)

if request.options.min_score:
predictions_array = [
Expand Down

0 comments on commit d227d2a

Please sign in to comment.