Skip to content

Commit 7d76682

Browse files
committed
Added a few minor fixes in citools modules, revision of the read_cp2k_tddfpt_log_file function to be more consistent and use the more intuitive keywords - the citools tutorials are updated together with these changes
1 parent 862f532 commit 7d76682

3 files changed

Lines changed: 590 additions & 10 deletions

File tree

src/libra_py/citools/ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def overlap(st_mo, data1, data2, params):
9797
nvirt = params["nvirt"]
9898
nelec = params["nelec"]
9999
nstates = params["nstates"]
100-
active_space = params["active_space"]
100+
active_space = params.get("active_space", None)
101101

102102
if nstates <= 1:
103103
raise ValueError("nstates must include at least one excited state")

src/libra_py/citools/interfaces.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,9 +919,11 @@ def sd_and_csf_overlaps_singlet(
919919
# ==================================================================
920920
st_mo_dense = None # st_mo.todense()
921921
if sparse.issparse(st_mo):
922-
st_mo_dense = st_mo.toarray(dtype=np.float64)
922+
st_mo_dense = st_mo.toarray()
923923
else:
924-
st_mo_dense = np.asarray(st_mo, dtype=np.float64)
924+
st_mo_dense = np.asarray(st_mo)
925+
926+
925927

926928
st_sd = sd.slater_overlap_matrix(
927929
dets, dets, st_mo_dense, complex_valued=False

0 commit comments

Comments
 (0)