Skip to content

Commit

Permalink
Add Solution type to richness (disambuigation with richness(::Abstrac…
Browse files Browse the repository at this point in the history
…tMatrix))
  • Loading branch information
alaindanet committed Apr 18, 2023
1 parent d5b316c commit 6077960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/measures/functioning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ julia> even = evenness(sol);
0.996
```
"""
function richness(solution; threshold = 0, kwargs...)
function richness(solution::Solution; threshold = 0, kwargs...)
measure_on = extract_last_timesteps(solution; kwargs...)
rich = richness.(eachcol(measure_on); threshold)
mean(rich)
Expand Down

0 comments on commit 6077960

Please sign in to comment.