Skip to content

Commit 1eccdc8

Browse files
committed
change default electrons from None to 0 for depository
Reactions expect electrons to be an integer, but the previous constructor for Depository reactions initialized it as None, which can lead to crashes
1 parent 55464c5 commit 1eccdc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmgpy/data/kinetics/depository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self,
6262
depository=None,
6363
family=None,
6464
entry=None,
65-
electrons=None,
65+
electrons=0,
6666
):
6767
Reaction.__init__(self,
6868
index=index,

0 commit comments

Comments
 (0)