Skip to content

Commit

Permalink
adapt to new LinOpCol release
Browse files Browse the repository at this point in the history
  • Loading branch information
tknopp committed Aug 30, 2023
1 parent a432812 commit 79a7113
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MPIFiles"
uuid = "371237a9-e6c1-5201-9adb-3d8cfa78fa9f"
authors = ["Tobias Knopp <[email protected]>"]
version = "0.12.7"
version = "0.12.8"

[deps]
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
Expand Down Expand Up @@ -47,7 +47,7 @@ ImageAxes = "0.6"
Inflate = "0.1.2"
Interpolations = "0.12, 0.13, 0.14"
Reexport = "1.0"
LinearOperatorCollection = "1.0"
LinearOperatorCollection = "1.1"
StableRNGs = "1.0.0"
Unitful = "0.17, 1.2"
UnitfulAngles = "0.6.1"
Expand Down
6 changes: 2 additions & 4 deletions src/Conversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,8 @@ function compressCalibMDF(filenameOut::String, f::MPIFile, idx::Vector{Int64};
if sparsityTrafoRedFactor == 1.0
params[:measData] = data
else
strToSparsityTrafo = Dict("DCT-I"=>(DCTOp{ComplexF32},1), "DCT-II"=>(DCTOp{ComplexF32},2),
"DCT-III"=>(DCTOp{ComplexF32},3), "DCT-IV"=>(DCTOp{ComplexF32},4))
trafo, dcttype = strToSparsityTrafo[sparsityTrafo]
B = createLinearOperator(trafo; shape=tuple(calibSize(f)...), dcttype)
B = createLinearOperator(sparsityTrafo, ComplexF32; shape=tuple(calibSize(f)...))

N = prod(calibSize(f))
NBG = size(data,1) - N
D = size(data,3)
Expand Down
5 changes: 1 addition & 4 deletions src/MDFCommon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ function systemMatrix(f::Union{MDFFileV2, MDFv2InMemory}, rows, bgCorrection=tru
if measIsSparsityTransformed(f)
dataBackTrafo = similar(fgdata, prod(calibSize(f)), size(fgdata,2))

strToSparsityTrafo = Dict("DCT-I"=>(DCTOp{ComplexF32},1), "DCT-II"=>(DCTOp{ComplexF32},2),
"DCT-III"=>(DCTOp{ComplexF32},3), "DCT-IV"=>(DCTOp{ComplexF32},4))
trafo, dcttype = strToSparsityTrafo[measSparsityTransformation(f)]
B = createLinearOperator(trafo; shape=tuple(calibSize(f)...), dcttype)
B = createLinearOperator(measSparsityTransformation(f), ComplexF32; shape=tuple(calibSize(f)...))

tmp = measSubsamplingIndices(f)
subsamplingIndices_ = reshape(tmp, size(tmp,1),
Expand Down

2 comments on commit 79a7113

@tknopp
Copy link
Member Author

@tknopp tknopp commented on 79a7113 Aug 30, 2023

Choose a reason for hiding this comment

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

@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/90478

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.12.8 -m "<description of version>" 79a7113d7c26d4e9aff493f8c1643a1617a0d204
git push origin v0.12.8

Please sign in to comment.