TypeError: 'float' object cannot be interpreted as an integer这个是哪儿有问题呀

(IPdb [4]): runfile('E:/EDEM/Matrial Calculate/Static angle of repose test/Static_angle_of_repose_analyst.py', wdir='E:/EDEM/Matrial Calculate/Static angle of repose test')

Loading: Static_angle_of_repose_example.dem


Processing: Static_angle_of_repose_example.dem

Traceback (most recent call last):

File "E:\EDEM\Matrial Calculate\Static angle of repose test\Static_angle_of_repose_analyst.py", line 62, in
spacing=np.linspace(top_rad,base_rad,(base_rad-top_rad)/bin_size)

File "<__array_function__ internals>", line 5, in linspace

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\function_base.py", line 120, in linspace
num = operator.index(num)

TypeError: 'float' object cannot be interpreted as an integer

看下是不是这个问题

应该是这行


spacing=np.linspace(top_rad,base_rad,(base_rad-top_rad)//bin_size)