Open RubendeBruin opened 1 year ago
I tried to run the example, but it fails with an error that "compute" is not available. Has the interface changed?
I can run concave_hull.concave_hull as a function, but it does not accept additional arguments.
(concavehull) c:\data\python\concavehull\test>python Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import concave_hull >>> import numpy as np >>> points = np.random.rand(20, 2) >>> hull = concave_hull.compute(points, 3) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'concave_hull' has no attribute 'compute' >>> concave_hull <module 'concave_hull' from 'c:\\python\\venvs\\concavehull\\Lib\\site-packages\\concave_hull\\__init__.py'> >>> concave_hull.concave_hull <function concave_hull at 0x0000020C806D4360> >>> concave_hull.concave_hull(points) array([[0.98553075, 0.1147427 ], [0.99851081, 0.30195032], [0.80894875, 0.65811672], [0.59799064, 0.99056575], [0.53566517, 0.99839296], [0.4559874 , 0.78033423], [0.00371112, 0.92268067], [0.45221557, 0.44759797], [0.23714478, 0.35211084], [0.15148603, 0.28948153], [0.12326807, 0.18024674], [0.4700003 , 0.07954127], [0.77819351, 0.12720469], [0.8988808 , 0.04160422], [0.9343545 , 0.0241974 ]]) >>> concave_hull.concave_hull(points, 4) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: concave_hull() takes 1 positional argument but 2 were given >>> concave_hull.concave_hull(points)
I tried to run the example, but it fails with an error that "compute" is not available. Has the interface changed?
I can run concave_hull.concave_hull as a function, but it does not accept additional arguments.