Skip to content

Commit

Permalink
Fix missing array call.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Aug 26, 2023
1 parent 9a1a260 commit fab3995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipie/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def from_qmcpack_sparse(filename):
hcore = hcore.view(numpy.complex128).reshape(nmo, nmo)
except KeyError:
# Old sparse format.
hcore = fh5["Hamiltonian/H1"][:].view(numpy.complex128).ravel()
hcore = np.array(fh5["Hamiltonian/H1"][:]).view(numpy.complex128).ravel()
idx = fh5["Hamiltonian/H1_indx"][:]
row_ix = idx[::2]
col_ix = idx[1::2]
Expand Down

0 comments on commit fab3995

Please sign in to comment.