Skip to content

Commit

Permalink
fix: assert in ct-number calculation was too restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Steinmetzer committed Apr 3, 2024
1 parent 91b07be commit 59a0757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pysisyphus/wavefunction/excited_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def ct_numbers_for_states(
Ta
Alpha-spin transition density matrices of shape (nstates, occ_a, virt_a).
Tb
Beta-spin transition density matrices of shape (nstates, occ_a, virt_a).
Beta-spin transition density matrices of shape (nstates, occ_b, virt_b).
Returns
-------
Expand All @@ -170,7 +170,8 @@ def ct_numbers_for_states(
if Tb is None:
om_b = om_a
else:
assert Ta.shape == Tb.shape
# Number of states must match
assert Ta.shape[0] == Tb.shape[0]
om_b = ctn(Cb, occ_b, Tb)
omegas = om_a + om_b
omegas = omegas.reshape(nstates, nfrags, nfrags)
Expand Down

0 comments on commit 59a0757

Please sign in to comment.