Skip to content

Commit 709a3dc

Browse files
authored
"reversible: False" will be added to irreversible reactions in yml files
1 parent 0e6f994 commit 709a3dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rmgpy/yml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def obj_to_dict(obj, spcs, names=None, label="solvent"):
141141
result_dict["type"] = "ElementaryReaction"
142142
result_dict["radicalchange"] = sum([get_radicals(x) for x in obj.products]) - \
143143
sum([get_radicals(x) for x in obj.reactants])
144+
if not obj.reversible:
145+
result_dict["reversible"] = obj.reversible
144146
result_dict["comment"] = obj.kinetics.comment
145147
elif isinstance(obj, Arrhenius):
146148
obj.change_t0(1.0)

0 commit comments

Comments
 (0)