Skip to content

Commit 20f838c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4a0e9d2 commit 20f838c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpgen/generator/lib/cp2k.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ def iterdict(d, out_list, flag=None, indent=0):
246246
def calculate_multiplicity(atom_names, atom_types, charge=0):
247247
"""
248248
Calculate the multiplicity based on atom species, quantities, and system charge.
249-
249+
250250
This function provides a basic heuristic for determining multiplicity:
251251
- Even number of electrons -> singlet (multiplicity = 1)
252252
- Odd number of electrons -> doublet (multiplicity = 2)
253-
253+
254254
Note: This approach assumes that an odd electron count always results in a doublet state.
255255
It does not account for systems with multiple unpaired electrons, which can have higher
256256
multiplicities (e.g., triplet, quartet, etc.). Users should be aware of this limitation

0 commit comments

Comments
 (0)