I am having problem reading complex number from a csv file. The format of the file is the following:
( -353.10438 +j1.72317617 ),( -23.16000 +j0.72512251 )
I tried importing the data using numpy.genfromtxt:
data=genfromtxt(fname, dtype=complex, skip_header=10, skip_footer=212, delimiter=',')
But every time I have a complex entry it returns me nan+0.j.
I also tried removing the brackets before and after the number, and replacing the j with 1j* but it didn't work.
Any suggestions? Thanks