Skip to content

Commit

Permalink
Replace deprecated np.int with Python's built-in int
Browse files Browse the repository at this point in the history
Fix #9 .
  • Loading branch information
NiklasGebauer authored Nov 7, 2023
1 parent ba0b526 commit ecc48bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schnetpack_gschnet/datasets/qm9.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ def _download_data(

property_list = []

irange = np.arange(len(ordered_files), dtype=np.int)
irange = np.arange(len(ordered_files), dtype=int)
if uncharacterized is not None:
irange = np.setdiff1d(irange, np.array(uncharacterized, dtype=np.int) - 1)
irange = np.setdiff1d(irange, np.array(uncharacterized, dtype=int) - 1)

for i in tqdm(irange):
xyzfile = os.path.join(raw_path, ordered_files[i])
Expand Down

0 comments on commit ecc48bc

Please sign in to comment.