I have,
import numpy as np
distances.append(np.array(ranges))
theta = np.arange(angle_min, angle_max + angle_increment, angle_increment)
theta = np.degrees(theta)
something.append(np.cos(np.radians(theta)) * distances[-1])
but it doesn't run for all files.
ValueError: operands could not be broadcast together with shapes (1082,) (1081,)
The error is something.append(np.cos(np.radians(theta)) * distances[-1])
but why??