Skip to content

Commit ae7de37

Browse files
committed
Fix convert method for radiocarbon
1 parent f41be03 commit ae7de37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utilities.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@
206206
end
207207

208208
## Conversions
209-
Base.convert(::Type{Radiocarbon{T}}, d::Normal) where {T<:Real} = Radiocarbon{T}(T(d.μ), T(d.σ), T.(d.ldist))
210-
Base.convert(::Type{Radiocarbon{T}}, d::Normal{T}) where {T<:Real} = d
209+
Base.convert(::Type{Radiocarbon{T}}, d::Radiocarbon) where {T<:Real} = Radiocarbon{T}(T(d.μ), T(d.σ), T.(d.ldist))
210+
Base.convert(::Type{Radiocarbon{T}}, d::Radiocarbon{T}) where {T<:Real} = d
211211

212212
## Parameters
213213
Distributions.params(d::Radiocarbon) = (d.dist, d.ldist)

0 commit comments

Comments
 (0)