Skip to content

Commit

Permalink
Compatibility issues with MRIReco 0.8 and 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Beghini committed Sep 25, 2024
1 parent 16a6cf1 commit 43daf09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LazyArtifacts = "1"
MAT = "0.10"
MRICoilSensitivities = "0.1"
MRIFiles = "0.1, 0.3"
MRIReco = "0.7, 0.8"
MRIReco = "0.8, 0.9"
NIfTI = "0.5.9, 0.6"
PolygonOps = "0.1"
PyPlot = "2"
Expand Down
9 changes: 5 additions & 4 deletions src/Reconstruction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ function Reconstruct(acqd::AcquisitionData,
sensit::Array{Complex{T},4},
noisemat::Union{Array{Complex{T}},Nothing} = nothing) where {T}

using MRIReco.RegularizedLeastSquares # This is necessary until MRIReco is fixed

params = Dict{Symbol, Any}()
params[:reco] = "multiCoil"
params[:solver] = "cgnr"
params[:regularization] = "L2"
params[] = 1.e-2
params[:iterations] = 10
params[:reconSize] = (acqd.encodingSize[1],acqd.encodingSize[2])
params[:estimateProfileCenter] = true
params[:reg] = L2Regularization(1.e-2)
params[:solver] = CGNR
params[:iterations] = 10
params[:senseMaps] = sensit

if !isnothing(noisemat)
Expand Down

0 comments on commit 43daf09

Please sign in to comment.