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.savetxt() got an unexpected keyword argument 'header' #20

Closed
cbeighley opened this issue Oct 21, 2014 · 3 comments
Closed

numpy.savetxt() got an unexpected keyword argument 'header' #20

cbeighley opened this issue Oct 21, 2014 · 3 comments
Labels

Comments

@cbeighley
Copy link

Hello, I'm trying to run the example in README.md and am getting the following error (using the v0.10 release).

/Library/Python/2.7/site-packages/ahkab-0.10-py2.7.egg/ahkab/csvlib.pyc in write_csv(filename, data, headers, append)
90 
91     headers = SEPARATOR.join(headers) if not append else ""
---> 92     numpy.savetxt(fp, data.T, delimiter=SEPARATOR, header=headers, comments='#')
93 
94     _close_fp(fp, filename)

TypeError: savetxt() got an unexpected keyword argument 'header'
@ggventurini
Copy link
Member

Hi there!

Please update your numpy installation to v. 1.7.0 or above. That will make the error go away.

I hope that helps. If you have any other problem, please post and I'll do my best to help.

Best,

GV

@cbeighley
Copy link
Author

Thanks! Should have read the install requirements more closely.

@ggventurini
Copy link
Member

I got to admit I added the requirement after I saw this issue. :)

Also, I would recommend updating to v0.11.

Best,

GV

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

No branches or pull requests

2 participants