Skip to content

Commit 363a40a

Browse files
authored
fix for psi4 gauxc (#40)
1 parent 220fbf4 commit 363a40a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ keywords:
4444
- mbe
4545
- schema
4646
license: BSD-3-Clause
47-
version: 0.5.0
48-
date-released: '2025-06-13'
47+
version: 0.5.1
48+
date-released: '2025-06-14'
4949
preferred-citation:
5050
type: article
5151
authors:

docs/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
-->
2020

2121

22+
## v0.5.1 / 2025-06-14
23+
24+
#### Bug Fixes
25+
* [\#40](https://github.com/MolSSI/QCManyBody/pull/40) Core -- Fix bug where an input
26+
`fix_symmetry='c1'` molecule didn't apply no symmetry to its fragments.
27+
28+
2229
## v0.5.0 / 2025-06-13
2330

2431
#### Breaking Changes

qcmanybody/core.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,12 @@ def iterate_molecules(self) -> Iterable[Tuple[str, str, Molecule]]:
248248
real_atoms_0 = [x - 1 for x in real_atoms]
249249
ghost_atoms_0 = [x - 1 for x in ghost_atoms]
250250
mol = self.molecule.get_fragment(real_atoms_0, ghost_atoms_0, orient=False, group_fragments=False)
251-
mol = mol.copy(update={"fix_com": True, "fix_orientation": True})
251+
updates = {"fix_com": True, "fix_orientation": True}
252+
if self.molecule.fix_symmetry == "c1":
253+
# symmetry in the parent usually irrelevant to symmetry in the fragments, but
254+
# if parent symmetry is cancelled, catch that and pass it along
255+
updates["fix_symmetry"] = "c1"
256+
mol = mol.copy(update=updates)
252257

253258
if self.embedding_charges:
254259
embedding_frags = list(set(range(1, self.nfragments + 1)) - set(basis_atoms))

0 commit comments

Comments
 (0)