8000 genfromtxt skip_footer has problems with comments (Trac #1593) · Issue #2189 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

genfromtxt skip_footer has problems with comments (Trac #1593) #2189

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

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 3 comments
Closed

genfromtxt skip_footer has problems with comments (Trac #1593) #2189

numpy-gitbot opened this issue Oct 19, 2012 · 3 comments

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/1593 on 2010-08-26 by trac user miguel, assigned to unknown.

It seems that genfromtxt's skip_footer parameter in numpy 1.4.1 ignores lines with comments or data with different layout from previous rows.

print np.genfromtxt(StringIO(4_'1 2\n'+3_'12\n'), skip_header=2, skip_footer=3)
[]

@numpy-gitbot
Copy link
Author

@pierregm wrote on 2010-09-13

OK, the behavior has been rationalized in r8715 and the bug should be fixed. Please confirm before the ticket can be closed.

@numpy-gitbot
Copy link
Author

@rgommers wrote on 2010-10-14

In [5]: print(np.genfromtxt(StringIO(4*'1 2\n'+3*'12\n'), skip_header=2, skip_footer=3))
[[ 1.  2.]
 [ 1.  2.]]

@numpy-gitbot
Copy link
Author

Milestone changed to 1.6.0 by @mwiebe on 2011-05-24

seberg pushed a commit to seberg/numpy that referenced this issue Oct 23, 2012
certik added a commit to certik/numpy that referenced this issue Jan 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0