Repository navigation
Commit e2c14af
committed
lno: compatibility with pyscf >= 2.14 and NumPy 2 in lnoccsd
- DFLNOCCSD._contract_vvvv_t2: pyscf 2.14 changed dfccsd._contract_vvvv_t2 to a
seven-argument signature (mycc, mol, vvL, VVL, t2, out, verbose). The old
six-argument call shifted the arguments, so t2 arrived as out and every
DF-LNO-CCSD run crashed. The call now adapts to the installed signature.
- _cp: np.array(a, copy=False, ...) raises under NumPy 2 when a copy is
unavoidable, which it is for an h5py slice on the out-of-core path
(max_memory below the fragment's Lov block). np.asarray keeps the intended
behaviour on both NumPy 1 and 2.
Both fixes have been running in production LNO-CCSD(T) calculations on benzene
and naphthalene (cc-pVDZ/cc-pVTZ, pyscf 2.14.0, NumPy 2) since 2026-09-10.1 parent f55abdb commit e2c14af
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
399 | 404 | | |
400 | 405 | | |
401 | 406 | | |
| |||
467 | 472 | | |
468 | 473 | | |
469 | 474 | | |
470 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
471 | 478 | | |
472 | 479 | | |
473 | 480 | | |
| |||
0 commit comments