Ddot Tutorial Error
veronicagh opened this issue · 0 comments
Hi, I installed all of the packages required to run ddot per instructions and cloned the repository, and I was trying to run the tutorial notebook in Jupyter. When I try to construct the ontology in the tutorial, I get this error:
TypeError Traceback (most recent call last)
in
20
21 # Construct ontology
---> 22 ont = Ontology(hierarchy, mapping)
23
24 # Prints a summary of the ontology's structure
~\Anaconda3\lib\site-packages\ddot\Ontology.py in init(self, hierarchy, mapping, edge_attr, node_attr, parent_child, add_root_name, propagate, ignore_orphan_terms, verbose, **kwargs)
606
607 if edge_attr is None:
--> 608 self.clear_edge_attr()
609 else:
610 assert edge_attr.index.nlevels == 2
~\Anaconda3\lib\site-packages\ddot\Ontology.py in clear_edge_attr(self)
709
710 self.edge_attr = pd.DataFrame()
--> 711 self.edge_attr.index = pd.MultiIndex(levels=[[],[]],
712 labels=[[],[]],
713 names=['Child', 'Parent'])
TypeError: new() got an unexpected keyword argument 'labels'
It seems to be an error in the source code.