Skip to content

Commit

Permalink
fix bug that produced an incorrect charge in optimization parsers whe…
Browse files Browse the repository at this point in the history
…n the number of alpha and beta electrons are different
  • Loading branch information
abelcarreras committed Jul 4, 2023
1 parent 6a6d3fe commit 7aa6a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyqchem/parsers/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def read_input_structure(output):
if row[1] == s:
n_nucleus += i

charge = n_nucleus - (basic_data['n_alpha'] + basic_data['n_alpha'])
charge = n_nucleus - (basic_data['n_alpha'] + basic_data['n_beta'])
multiplicity = abs(basic_data['n_alpha'] - basic_data['n_beta']) + 1

return Structure(coordinates=coordinates,
Expand Down

0 comments on commit 7aa6a06

Please sign in to comment.