Skip to content

Commit 97e14da

Browse files
committed
Fix #7 (WeightingOp API Change) with backwards compat meth. def
1 parent 54bab32 commit 97e14da

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LinearOperatorCollection"
22
uuid = "a4a2c56f-fead-462a-a3ab-85921a5f2575"
33
authors = ["Tobias Knopp <[email protected]> and contributors"]
4-
version = "1.2.0"
4+
version = "1.2.1"
55

66
[deps]
77
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

src/WeightingOp.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ mutable struct WeightingOp{T} <: AbstractLinearOperatorFromCollection{T}
1515
return new{T}(opDiagonal(weights_cat), weights_cat)
1616
end
1717
end
18+
WeightingOp(::Type{T}; weights::vecT, rep::Int=1) where {T <: Number, vecT<:AbstractVector{T}} = WeightingOp(weights, rep)
1819

1920
function Base.getproperty(wop::WeightingOp, field::Symbol)
2021
if in(field, (:op, :weights))

0 commit comments

Comments
 (0)