Skip to content

Commit

Permalink
Update manager
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 30, 2018
1 parent b0ab487 commit c89b800
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bio2bel_chebi/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,14 @@ def to_bel(self):
:rtype: pybel.BELGraph
"""
if self._get_default_namespace() is None:
self.upload_bel_ids() # Make sure the super id namespace is available

graph = BELGraph(
name=_chebi_bel_name,
version=_chebi_bel_version,
description=_chebi_description,
)

graph.namespace_url[_chebi_keyword] = _chebi_keyword
namespace = self.upload_bel_ids() # Make sure the super id namespace is available
graph.namespace_url[namespace.keyword] = namespace.url

for relation in self._iterate_relations():
relation.add_to_graph(graph)
Expand Down

0 comments on commit c89b800

Please sign in to comment.