Skip to content

Commit

Permalink
Fix bad link in docs (#157)
Browse files Browse the repository at this point in the history
* Fix bad link in docs

* formatting
  • Loading branch information
mtsch authored Jul 27, 2022
1 parent 55c2d13 commit f9daa6b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 41 deletions.
2 changes: 1 addition & 1 deletion docs/src/related-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on my (limited) experience with these packages.
* [Ripser.jl](https://github.com/mtsch/Ripser.jl) my deprecated wrapper of the original
C++ program. Very bare-bones and outdated. Runs a bit slower than Ripserer.

* [Sparips.jl](https://github.com/mtsch/Ripser.jl) this is a preprocessor that comes with
* [Sparips.jl](https://github.com/bbrehm/Sparips.jl) this is a preprocessor that comes with
a different wrapper of Ripser. The preprocessor allows you to compute persistent homology
of very large datasets. Integrating it with Ripserer is on my TODO list.

Expand Down
54 changes: 24 additions & 30 deletions test/extra/cycles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ using Ripserer: distance_matrix, OneSkeleton

@testset "OneSkeleton respects the Graphs interface" begin
@testset "no threshold or removed simplices" begin
flt = Rips(
[
0 1 2 3 2 1
1 0 1 2 3 2
2 1 0 1 2 3
3 2 1 0 1 2
2 3 2 1 0 1
1 2 3 2 1 0
]
)
flt = Rips([
0 1 2 3 2 1
1 0 1 2 3 2
2 1 0 1 2 3
3 2 1 0 1 2
2 3 2 1 0 1
1 2 3 2 1 0
])

g = OneSkeleton(flt)
@test eltype(g) Int
Expand Down Expand Up @@ -127,16 +125,14 @@ end

@testset "Cycle reconstruction" begin
@testset "small cycle" begin
flt = Rips(
[
0 1 2 3 2 1
1 0 1 2 3 2
2 1 0 1 2 3
3 2 1 0 1 2
2 3 2 1 0 1
1 2 3 2 1 0
]
)
flt = Rips([
0 1 2 3 2 1
1 0 1 2 3 2
2 1 0 1 2 3
3 2 1 0 1 2
2 3 2 1 0 1
1 2 3 2 1 0
])

interval = ripserer(flt; reps=true)[2][1]
cyc1 = reconstruct_cycle(flt, interval)
Expand Down Expand Up @@ -282,16 +278,14 @@ end
end

@testset "Errors" begin
flt = Rips(
[
0 1 2 3 2 1
1 0 1 2 3 2
2 1 0 1 2 3
3 2 1 0 1 2
2 3 2 1 0 1
1 2 3 2 1 0
]
)
flt = Rips([
0 1 2 3 2 1
1 0 1 2 3 2
2 1 0 1 2 3
3 2 1 0 1 2
2 3 2 1 0 1
1 2 3 2 1 0
])
_, d1, d2 = ripserer(flt; reps=2, dim_max=2)

@test_throws ArgumentError reconstruct_cycle(flt, d1[1])
Expand Down
18 changes: 8 additions & 10 deletions test/filtrations/custom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ end
end

@testset "Custom filtration vs sparse Rips" begin
spdist = sparse(
[
0 1 0 0 0 1
1 0 1 0 0 0
0 1 0 1 0 0
0 0 1 0 1 0
0 0 0 1 0 1
1 0 0 0 1 0
]
)
spdist = sparse([
0 1 0 0 0 1
1 0 1 0 0 0
0 1 0 1 0 0
0 0 1 0 1 0
0 0 0 1 0 1
1 0 0 0 1 0
])
cf = Custom([
(1,) => 0,
(2,) => 0,
Expand Down

0 comments on commit f9daa6b

Please sign in to comment.