Skip to content

Commit 77f4d1d

Browse files
femtocleaner[bot]lstagner
authored andcommitted
Fix deprecations (#7)
1 parent 6c1b18c commit 77f4d1d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Pkg.add("ConcaveHull") # Add package
1313
using ConcaveHull
1414
using Plots
1515

16-
points = [[th, -sin(th)] .+ (0.4*rand(2) - 0.2) for th in linspace(0,2pi,5000)];
16+
points = [[th, -sin(th)] .+ (0.4*rand(2) - 0.2) for th in range(0, stop=2pi, length=5000)];
1717
x = [p[1] for p in points];
1818
y = [p[2] for p in points];
1919

@@ -23,7 +23,7 @@ hull_area = area(hull)
2323
scatter(x,y,ms=1,label="",axis=false,grid=false,markerstrokewidth=0.0)
2424
plot!(hull)
2525
annotate!(pi/2,0.5,"K = $(hull.k)")
26-
annotate!(pi/2,0.25,"Area $(round(hull_area,3))")
26+
annotate!(pi/2,0.25,"Area $(round(hull_area, digits=3))")
2727
```
2828
![](./docs/hull_15.png)
2929

@@ -36,6 +36,6 @@ hull_area = area(hull)
3636
scatter(x,y,ms=1,label="",axis=false,grid=false,markerstrokewidth=0.0)
3737
plot!(hull)
3838
annotate!(pi/2,0.5,"K = $(hull.k)")
39-
annotate!(pi/2,0.25,"Area $(round(hull_area,3))")
39+
annotate!(pi/2,0.25,"Area $(round(hull_area, digits=3))")
4040
```
4141
![](./docs/hull_100.png)

src/concave_hull.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function concave_hull(tree::KDTree, k::Int)
9595

9696
if inter
9797
if k+1 >= npoints
98-
info("Unable to construct concave hull")
98+
@info("Unable to construct concave hull")
9999
return hull
100100
end
101101
return concave_hull(tree, k+1)
@@ -112,7 +112,7 @@ function concave_hull(tree::KDTree, k::Int)
112112

113113
if any(~in_hull(p,hull) for p in tree.data[.~(ishull)])
114114
if k+1 >= npoints
115-
info("Unable to construct concave hull")
115+
@info("Unable to construct concave hull")
116116
return hull
117117
end
118118
return concave_hull(tree, k+1)

0 commit comments

Comments
 (0)