Skip to content

Commit

Permalink
fix oxygen detect in detect_multiplicity (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Sep 6, 2021
1 parent 0e2081a commit 50829ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mddatasetbuilder/datasetbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def detect_multiplicity(symbols):
"""
# currently only support charge=0
# oxygen -> 3
if np.count_nonzero(symbols == ["O"]) == 2 and symbols.size == 2:
if symbols == ["O", "O"]:
return 3
# calculates the total number of electrons, assumes they are paired as much as possible
n_total = sum([atomic_numbers[s] for s in symbols])
Expand Down

0 comments on commit 50829ea

Please sign in to comment.