nngp icon indicating copy to clipboard operation
nngp copied to clipboard

numpy load error

Open cavestruz opened this issue 6 years ago • 1 comments

@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?

cavestruz avatar Jun 25 '18 23:06 cavestruz

I used grid_data_np = np.load(f, allow_pickle=True, encoding = 'latin1') and worked for me

SimaDidari avatar Jul 12 '19 01:07 SimaDidari