Fix NumPy deprecation warning in helper script

This commit is contained in:
Gunther H. Weber 2021-03-18 19:24:09 -07:00
parent 22ee5f11bc
commit 36a7f8e61a

@ -6,7 +6,7 @@ import sys
# Read a 2D text file from disk into a NumPy array
def read_file(fn):
data = np.fromfile(fn, dtype=np.int, sep=" ")
data = np.fromfile(fn, dtype=int, sep=" ")
data = data[2:].reshape(tuple(data[0:2]))
return data