nngp
nngp copied to clipboard
numpy load error
@jaehlee - Hi Jaehoon, thank you for making your code public. I was wondering if there might be a numpy dependency issue. When running the "-- Usage" line, I get a numpy load error that is either:
fid.seek(-N, 1) # back-up TypeError: seek() takes exactly 2 arguments (3 given)
or
fid.seek(-min(N, len(magic)), 1) # back-up TypeError: seek() takes 2 positional arguments but 3 were given
that points to line 110, in get_grid grid_data_np = np.load(f)
Since there are already files in ./grid_data, I was assuming this should just run out of the box. Is this correct? If so, do you have a list of package versions that you used when developing this code?
I used grid_data_np = np.load(f, allow_pickle=True, encoding = 'latin1') and worked for me