Skip to content

Commit

Permalink
Fixed empty annotations written to reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Mar 7, 2022
1 parent be61950 commit 90ad096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyenzyme/enzymeml/tools/enzymemlwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def appendMultiAttributes(
attribute = getattr(object, value)
if attribute:
node.addAttr(key, str(attribute))
else:
return 0
else:
return 0

Expand Down Expand Up @@ -653,8 +655,6 @@ def _addReactions(

if conditionsAnnotation.getNumChildren() > 0:
reactionAnnotation.addChild(conditionsAnnotation)

if reactionAnnotation.getNumChildren() > 0:
reaction.appendAnnotation(reactionAnnotation)

# Write educts
Expand Down

0 comments on commit 90ad096

Please sign in to comment.