Skip to content

Commit

Permalink
Fix #7 (WeightingOp API Change) with backwards compat meth. def
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Mar 19, 2024
1 parent 54bab32 commit 97e14da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LinearOperatorCollection"
uuid = "a4a2c56f-fead-462a-a3ab-85921a5f2575"
authors = ["Tobias Knopp <tobias.knopp@tuhh.de> and contributors"]
version = "1.2.0"
version = "1.2.1"

[deps]
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Expand Down
1 change: 1 addition & 0 deletions src/WeightingOp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mutable struct WeightingOp{T} <: AbstractLinearOperatorFromCollection{T}
return new{T}(opDiagonal(weights_cat), weights_cat)
end
end
WeightingOp(::Type{T}; weights::vecT, rep::Int=1) where {T <: Number, vecT<:AbstractVector{T}} = WeightingOp(weights, rep)

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

2 comments on commit 97e14da

@nHackel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/103180

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.1 -m "<description of version>" 97e14da20443842a64c61e0c2ab3f142f478b44c
git push origin v1.2.1

Please sign in to comment.