Skip to content

Commit 3c1d47b

Browse files
chores: comment get_term method from client
1 parent dd5dcc2 commit 3c1d47b

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

ontograph/client.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -449,22 +449,22 @@ def _get_ontology(self) -> Ontology:
449449
return self._ontology
450450

451451
# ---- Navigation Methods
452-
def get_term(self, term_id: str) -> object:
453-
"""Retrieve a term by its ID.
452+
# def get_term(self, term_id: str) -> object:
453+
# """Retrieve a term by its ID.
454454

455-
Args:
456-
term_id (str): Term identifier.
455+
# Args:
456+
# term_id (str): Term identifier.
457457

458-
Returns:
459-
object: Term object.
458+
# Returns:
459+
# object: Term object.
460460

461-
Example:
462-
>>> client = ClientOntology()
463-
>>> ontology = client.load(file_path_ontology="./tests/resources/dummy_ontology.obo")
464-
>>> client.get_term("A")
465-
Term('A', name='termA')
466-
"""
467-
return self._navigator.get_term(term_id=term_id)
461+
# Example:
462+
# >>> client = ClientOntology()
463+
# >>> ontology = client.load(file_path_ontology="./tests/resources/dummy_ontology.obo")
464+
# >>> client.get_term("A")
465+
# Term('A', name='termA')
466+
# """
467+
# return self._navigator.get_term(term_id=term_id)
468468

469469
def get_parents(self, term_id: str, include_self: bool = False) -> list:
470470
"""Get parent terms of a given term.

0 commit comments

Comments
 (0)