Skip to content

Commit

Permalink
remove _get_atom_node_key method
Browse files Browse the repository at this point in the history
as discussed in issue #490
  • Loading branch information
DaniBodor committed Sep 17, 2023
1 parent f735425 commit baa739f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions deeprank2/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,6 @@ def _load_structure(self, load_pssms: bool) -> PDBStructure:

return structure

@staticmethod
def _get_atom_node_key(atom) -> str:
#TODO: check whether this method is still useful or just obsolete legacy code
"""
Since pickle has problems serializing the graph when the nodes are atoms,
this function can be used to generate a unique key for the atom.
"""

# This should include the model, chain, residue and atom
return str(atom)

@property
def model_id(self) -> str:
"""The ID of the model, usually a .PDB accession code."""
Expand Down

0 comments on commit baa739f

Please sign in to comment.