Skip to content

BUG: numpy.loadtxt reads only 50000 lines when skip_rows >= max_rows #28379

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

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

charris
Copy link
Member

@charris charris commented Feb 21, 2025

Backport of #28319

  • fixed bug in function _read in numpy/lib/_npyio_impl.py, misnamed variable skiplines as skiprows; added test in numpy/lib/tests/test_loadtxt.py

  • fixed sintax in test_loadtxt.py

  • changed use of mkstemp with use of tmpdir provided by pytest

  • fixed bug in use of tmpdir in loadtxt test

  • Update numpy/lib/tests/test_loadtxt.py

  • Update file numpy/lib/tests/test_loadtxt.py

  • Update file numpy/lib/tests/test_loadtxt.py

  • Update numpy/lib/tests/test_loadtxt.py

…umpy#28319)

* fixed bug in function _read in numpy/lib/_npyio_impl.py, misnamed variable skiplines as skiprows; added test in numpy/lib/tests/test_loadtxt.py

* fixed sintax in test_loadtxt.py

* changed use of mkstemp with use of tmpdir provided by pytest

* fixed bug in use of tmpdir in loadtxt test

* Update numpy/lib/tests/test_loadtxt.py

Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>

* Update file numpy/lib/tests/test_loadtxt.py

* Update file numpy/lib/tests/test_loadtxt.py

* Update numpy/lib/tests/test_loadtxt.py

---------

Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Feb 21, 2025
@charris charris added this to the 2.2.4 release milestone Feb 21, 2025
@charris charris merged commit d3deb87 into numpy:maintenance/2.2.x Feb 21, 2025
69 of 70 checks passed
@charris charris deleted the backport-28319 branch February 21, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants