PyEIS icon indicating copy to clipboard operation
PyEIS copied to clipboard

Typing issues when using fitting='on'

Open flottman opened this issue 4 years ago • 2 comments

line 4701, in EIS_plot ax.plot(self.circuit_fit[i].real, -self.circuit_fit[i].imag, lw=0, marker='o', ms=8, mec='r', mew=1, mfc='none', label='')

AttributeError: 'Series' object has no attribute 'real'

What appears to be happening is that the circuit_fit has become a Series inside of a list for some reason. I'm working around it by just throwing in a .tolist() and plotting it myself, but I couldn't track down where it came from in the source.

numpy: 1.18.2 pandas: 1.0.3 python: 3.7.6

Thanks again for the awesome package!

flottman avatar Apr 02 '20 23:04 flottman

Even I am facing the same issue

sameer9406 avatar Apr 21 '20 14:04 sameer9406

Hi I used .to_numpy() and it worked really well.

fix

sameer9406 avatar Apr 22 '20 11:04 sameer9406