From 06de1d866e44b56d24ee617931a2105c471931c3 Mon Sep 17 00:00:00 2001 From: mgiulini Date: Wed, 5 Jul 2023 14:43:08 +0200 Subject: [PATCH] removed uniprot id from get_maxint_pdb --- src/arctic3d/modules/pdb.py | 1 - tests/test_pdb.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/arctic3d/modules/pdb.py b/src/arctic3d/modules/pdb.py index d49d1e0..c820a47 100644 --- a/src/arctic3d/modules/pdb.py +++ b/src/arctic3d/modules/pdb.py @@ -842,7 +842,6 @@ def get_best_pdb( pdb_f, cif_f, top_hit, filtered_interfaces = get_maxint_pdb( validated_pdbs_and_cifs, interface_residues, - uniprot_id, ) if pdb_f is None or cif_f is None: diff --git a/tests/test_pdb.py b/tests/test_pdb.py index bd8dee0..fe826f5 100644 --- a/tests/test_pdb.py +++ b/tests/test_pdb.py @@ -216,7 +216,7 @@ def test_get_maxint_pdb_empty(): """Test get_maxint_pdb with empty output.""" empty_validated_pdbs = [] pdb_f, cif_f, top_hit, filtered_interfaces = get_maxint_pdb( - empty_validated_pdbs, {}, uniprot_id=None + empty_validated_pdbs, {} ) assert pdb_f is None assert cif_f is None @@ -227,9 +227,8 @@ def test_get_maxint_pdb_empty(): def test_get_maxint_pdb(good_hits, example_interfaces): """Test get_maxint_pdb with implicit pdb numbering.""" validated_pdbs = validate_api_hit(good_hits, "P00760") - print(f"validated_pdbs {validated_pdbs}") pdb_f, cif_f, top_hit, filtered_interfaces = get_maxint_pdb( - validated_pdbs, example_interfaces, "P00760" + validated_pdbs, example_interfaces ) assert pdb_f.name == "4xoj-A-occ-tidy.pdb" assert cif_f.name == "4xoj_updated.cif"