You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: fromstring to read complex array #13891
np.fromstring is not able to process complex data type. This would be useful to read from text input file. At least the documentation should mention that complex is not accepted as dtype.
@seberg As we discussed at SciPy, I would like to try working on this. Just to double check, the following location is where I should be adding the code to parse complex values right?
Activity
zjpoh commentedon Jul 23, 2019
@seberg As we discussed at SciPy, I would like to try working on this. Just to double check, the following location is where I should be adding the code to parse complex values right?
numpy/numpy/core/src/multiarray/arraytypes.c.src
Lines 1759 to 1765 in 6ca558f
It took a while for me to find it but I think it's a good exercise. =)
BTW, I think it would be nice to add to
np.fromstringdocstring on the supported dtypes.Thanks!
seberg commentedon Jul 23, 2019
Yes, that is the main ting to define.
seberg commentedon Mar 6, 2023
The linked PR impleemnted this long ago.