kbknudsen / PyEIS

PyEIS: A Python-based Electrochemical Impedance Spectroscopy simulator and analyzer
Apache License 2.0
177 stars 61 forks source link

Typing issues when using fitting='on' #2

Open flottman opened 4 years ago

flottman commented 4 years ago

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!

sameer9406 commented 4 years ago

Even I am facing the same issue

sameer9406 commented 4 years ago

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

fix