Skip to content

Commit

Permalink
Replace RealQuantity with Unitful.RealOrRealQuantity
Browse files Browse the repository at this point in the history
  • Loading branch information
fhagemann authored and oschulz committed Sep 11, 2024
1 parent f705e46 commit 5891cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 2 additions & 0 deletions src/RadiationDetectorDSP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import ChainRulesCore
import DSP
import SIMD

using Unitful: RealOrRealQuantity as RealQuantity


include("ka_compat.jl")
include("fast_indexing.jl")
Expand Down
17 changes: 0 additions & 17 deletions src/samples.jl
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
# This file is a part of RadiationDetectorDSP.jl, licensed under the MIT License (MIT).


"""
const MaybeWithUnits{T<:Number} = Union{T,Quantity{<:T}}
A numerical value with or without units
"""
const MaybeWithUnits{T<:Number} = Union{T,Quantity{<:T}}


"""
const RealQuantity = MaybeWithUnits{<:Real}
A real value with or without units.
"""
const RealQuantity = MaybeWithUnits{<:Real}


"""
const AbstractSamples{T<:RealQuantity} = AbstractVector{T}
Expand Down

0 comments on commit 5891cdf

Please sign in to comment.