mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix NumPy deprecation warning in helper script
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user