Skip to content
Snippets Groups Projects
Commit d532fef7 authored by Hottlet Valentin's avatar Hottlet Valentin
Browse files

correction Yohan pour generation d'arbre pampa-web

parent 173d4627
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ class Taxonomy(object):
if set_of_taxid.issubset(self.descendants[ancestor]):
return ancestor
else:
return None
return ancestor
def unary_ancestor(self, taxid):
if taxid==None or taxid in self.root:
......@@ -160,7 +160,7 @@ class Taxonomy(object):
def hca(self, set_of_taxid):
""" highest common ancestor: highest node whose descendant are set_of_taxid """
hca=self.lca(set_of_taxid)
return unary_ancestor(hca)
return self.unary_ancestor(hca)
## end of class Taxonomy ##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment