vMeijin / pySmithPlot

Matplotlib extension for creating Smith charts with Python
127 stars 73 forks source link

'numpy.float64' object cannot be interpreted as an integer #33

Open wenzhao98 opened 2 years ago

wenzhao98 commented 2 years ago

Got a 'numpy.float64' object cannot be interpreted as an integer error when run smith_full_test.py. Any idea?

sinc commented 2 years ago

Try replace line 1064 in smithaxes.py file by for xs in np.linspace(x0, x1, int(x_div + 1))[1:]: and line 1068 for ys in np.linspace(y0, y1, int(y_div + 1))[1:]:

wenzhao98 commented 2 years ago

It worked. Thank you, sinc.