You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from geomstats.geometry.discrete_curves import R2, DiscreteCurves, SRVShapeBundle
INFO: Using numpy backend
dc = DiscreteCurves(k_sampling_points=10, ambient_manifold=R2)
curve1 = dc.random_point()
curve2 = dc.random_point()
bundle = SRVShapeBundle(k_sampling_points=10, ambient_manifold=R2)
bundle.align(curve1, curve2)
gives the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Volumes/GoogleDrive/My Drive/code/geomstats/geomstats/geometry/discrete_curves.py", line 2133, in align
return horizontal_path(1.0)
File "/Volumes/GoogleDrive/My Drive/code/geomstats/geomstats/geometry/discrete_curves.py", line 2070, in horizontal_path
n_times = len(t)
TypeError: object of type 'float' has no len()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Volumes/GoogleDrive/My Drive/code/geomstats/geomstats/geometry/discrete_curves.py", line 2133, in align
return horizontal_path(1.0)
File "/Volumes/GoogleDrive/My Drive/code/geomstats/geomstats/geometry/discrete_curves.py", line 2070, in horizontal_path
n_times = len(t)
TypeError: object of type 'float' has no len()
Your environment
Github master version of geomstats.
Python 3.8.10, Mac.
The text was updated successfully, but these errors were encountered:
I have fixed the bug in the align method of ShapeSrvBundle in PR #1823. However, the way that random points are generated on the space of discrete curves should also be changed, because for now it generate curves that are completely erratic and on which the alignment procedure is sure not to converge.
Describe the bug
gives the error:
Steps/Code to Reproduce
Expected Behaviour
No error is thrown.
Actual Behaviour
Your environment
The text was updated successfully, but these errors were encountered: