Skip to content

Commit

Permalink
Fix Type in Aowdt (#137)
Browse files Browse the repository at this point in the history
* Fix Type in Aowdt

* To v0.19

* To v0.18.2
  • Loading branch information
JeffFessler authored Sep 4, 2024
1 parent 75b1b4a commit 44f090d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MIRT"
uuid = "7035ae7a-3787-11e9-139a-5545ed3dc201"
authors = ["fessler <[email protected]>"]
version = "0.18.1"
version = "0.18.2"

[deps]
AVSfldIO = "b6189060-daf9-4c28-845a-cc0984b81781"
Expand Down
8 changes: 4 additions & 4 deletions src/regularize/Aodwt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ which is useful when imposing scale-dependent regularization
"""
function Aodwt(
dims::Dims ;
T::Type{<:Complex{<:AbstractFloat}} = ComplexF32,
T::Type{<:Union{AbstractFloat,Complex{<:AbstractFloat}}} = Float32,
level::Int = 3,
wt = wavelet(WT.haar),
operator::Bool = true, # !
Expand All @@ -52,7 +52,7 @@ function Aodwt(
mfun = (A, x) -> A * x
return mfun, LinearMapAA(forw!, back!,
(prod(dims), prod(dims)) ;
prop = (wt=wt, level=lev), T=T,
prop = (wt, level=lev), T,
operator = true, idim=dims, odim=dims,
)
else
Expand All @@ -63,7 +63,7 @@ function Aodwt(
# x -> vec(dwt(reshape(x, dims), wt, level)),
# y -> vec(idwt(reshape(y, dims), wt, level)),
(prod(dims), prod(dims)) ;
prop = (wt=wt, level=lev), T=T,
prop = (wt, level=lev), T,
)
end
end
Expand All @@ -72,7 +72,7 @@ function Aodwt(

scales = zeros(dims)
for il in 1:level
_,Al = mfunA(il)
_, Al = mfunA(il)
tmp = mfun(Al, ones(dims)) .== 0
scales += il * (tmp .& (scales .== 0))
end
Expand Down

2 comments on commit 44f090d

@JeffFessler
Copy link
Owner 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/114564

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 v0.18.2 -m "<description of version>" 44f090d26b617ae6ab7339541231a183ceb7cefb
git push origin v0.18.2

Please sign in to comment.