Skip to content
Snippets Groups Projects
Commit 961ba3d4 authored by Peter Schubert's avatar Peter Schubert
Browse files

support empty sboterm in reactions

parent 64c34134
Branches
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ class XbaReaction: ...@@ -15,7 +15,7 @@ class XbaReaction:
def __init__(self, s_reaction, species, functions, compartments): def __init__(self, s_reaction, species, functions, compartments):
self.id = s_reaction.name self.id = s_reaction.name
self.name = s_reaction.get('name', self.id) self.name = s_reaction.get('name', self.id)
if 'sboterm' in s_reaction: if ('sboterm' in s_reaction) and (type(s_reaction['sboterm']) is str):
self.sboterm = SboTerm(s_reaction['sboterm']) self.sboterm = SboTerm(s_reaction['sboterm'])
self.reaction_string = s_reaction['reactionString'] self.reaction_string = s_reaction['reactionString']
self.reversible = s_reaction['reversible'] self.reversible = s_reaction['reversible']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment