I encountered strange behaviour of numpy.fromstring ``` python import numpy as np lines='1.0\n2.0\n3.0\n' np.fromstring(lines, dtype=float, sep="\n") array([ 1., 2., 3.]) np.fromstring(lines, dtype=int, sep="\n") array([1]) ``` Is this desired? To me it feels like this should raise an error.
Activity
solarjoe commentedon Jun 19, 2017
The above still is broken.
And I found another strange behaviour for numpy.fromstring (NumPy 1.10.4).
If the string ends with a seperator and a line break, a
-1.0is inserted.ron819 commentedon Nov 18, 2018
any progress with fix for this?
[-]numpy.fromstring behaviour[/-][+]BUG: np.fromstring ignores invalid data.[/+]