We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug loadtxt raises a ValueError if the data file contains two consecutive comment lines.
ValueError
ulab version: 6.7.2-2D
To Reproduce Create a data file with the following content:
# A multi-line # comment 0 1 2 3
And try to load it with loadtxt:
from ulab import numpy print(numpy.loadtxt('data.dat'))
Results in a ValueError:
Traceback (most recent call last): File "code.py", line 2, in <module> ValueError: invalid syntax for number
Expected behavior Load the data in an array:
array([[0.0, 1.0], [2.0, 3.0]], dtype=float32)
Additional context If the second comment line starts with a whitespace the error does not occur:
The text was updated successfully, but these errors were encountered:
Thanks for the report, I'll try to sort it out.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
loadtxt raises a
ValueError
if the data file contains two consecutive comment lines.ulab version: 6.7.2-2D
To Reproduce
Create a data file with the following content:
And try to load it with loadtxt:
Results in a ValueError:
Expected behavior
Load the data in an array:
Additional context
If the second comment line starts with a whitespace the error does not occur:
The text was updated successfully, but these errors were encountered: