Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
Update dating.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben J. Ward committed Feb 24, 2017
1 parent d429f46 commit aa0ee59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BufferedStreams 0.2
Colors
Distributions
IndexableBitVectors 0.1.1
IntervalTrees 0.1
IntervalTrees 0.1 0.1.1
Iterators
Libz 0.2
LightGraphs
Expand Down
2 changes: 1 addition & 1 deletion src/phylo/dating.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ coaltime(50, 0.12, 10e-9, SimpleEstimate)
```
"""
@inline function coaltime(N::Int, d::Float64, µ::Float64, ::Type{SimpleEstimate})
@assert N >= K >= 0 error("Genetic distance `d` must be a value between 1 and 0.")
@assert N >= d >= 0 error("Genetic distance `d` must be a value between 1 and 0.")
return d / (2 * µ)
end

Expand Down

0 comments on commit aa0ee59

Please sign in to comment.