gecos-lab / PZero

GNU Affero General Public License v3.0
24 stars 2 forks source link

Resemple Distance tool is not working #118

Closed r-monti14 closed 5 hours ago

r-monti14 commented 5 hours ago

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

r-monti14 commented 5 hours ago

Solved with 3f6192d