Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy load error #1

Open
cavestruz opened this issue Jun 25, 2018 · 1 comment
Open

numpy load error #1

cavestruz opened this issue Jun 25, 2018 · 1 comment

Comments

@cavestruz
Copy link

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

@SimaDidari
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants