Skip to content

Commit

Permalink
Fix numpy np.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Aug 26, 2023
1 parent fab3995 commit 671cdfc
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 = np.array(fh5["Hamiltonian/H1"][:]).view(numpy.complex128).ravel()
hcore = numpy.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 671cdfc

Please sign in to comment.