Traceback (most recent call last):
File "D:\REPOS\PZero\pzero\windows_factory.py", line 3021, in
self.resampleDistanceButton.triggered.connect(lambda: resample_line_distance(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\REPOS\PZero\pzero\two_d_lines.py", line 924, in resample_line_distance
shp_line_out = shp_linestring(points)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Riccardo\anaconda3\envs\pzero6\Lib\site-packages\shapely\geometry\linestring.py", line 66, in new
coordinates = [_coords(o) for o in coordinates]
^^^^^^^^^^
File "C:\Users\Riccardo\anaconda3\envs\pzero6\Lib\site-packages\shapely\geometry\linestring.py", line 64, in _coords
return [float(c) for c in o]
^^^^^^^^
TypeError: only length-1 arrays can be converted to Python scalars
Traceback (most recent call last): File "D:\REPOS\PZero\pzero\windows_factory.py", line 3021, in
self.resampleDistanceButton.triggered.connect(lambda: resample_line_distance(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\REPOS\PZero\pzero\two_d_lines.py", line 924, in resample_line_distance
shp_line_out = shp_linestring(points)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Riccardo\anaconda3\envs\pzero6\Lib\site-packages\shapely\geometry\linestring.py", line 66, in new
coordinates = [_coords(o) for o in coordinates]
^^^^^^^^^^
File "C:\Users\Riccardo\anaconda3\envs\pzero6\Lib\site-packages\shapely\geometry\linestring.py", line 64, in _coords
return [float(c) for c in o]
^^^^^^^^
TypeError: only length-1 arrays can be converted to Python scalars