Skip to content

Commit 94b7eb0

Browse files
Merge remote-tracking branch 'origin/feat/flexible-multiplicity' into feat/flexible-multiplicity
2 parents f25a777 + ead0376 commit 94b7eb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828

2929
# Python
3030
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: v0.12.4
31+
rev: v0.12.5
3232
hooks:
3333
- id: ruff
3434
args: ["--fix"]

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)