Skip to content

Commit 89d5ece

Browse files
author
Ivo Maatman
committed
beautifying
1 parent 5dfbe34 commit 89d5ece

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ext/MRISubspaceReconCUDAExt/BackProjection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ end
124124
function MRISubspaceRecon.calculate_backprojection(data::CuArray{Tc}, trj::CuArray{<:Integer,3}, img_shape; U=cu(I(size(trj)[end])), sample_mask=CUDA.ones(Bool, size(trj)[2:end])) where {Tc <: Complex}
125125
trj_cpu = Array(trj)
126126
mask_cpu = Array(sample_mask)
127-
@assert all(d -> all((@view(trj_cpu[d, :, :])[mask_cpu]) .>= 1) && all((@view(trj_cpu[d, :, :])[mask_cpu]) .<= img_shape[d]), 1:size(trj, 1)) "Cartesian trajectory values must be in the range 1:img_shape[d] for each dimension d. Consider shifting the trajectory."
127+
@assert all(d -> all((@view(trj_cpu[d, :, :])[mask_cpu]) .>= 1) && all((@view(trj_cpu[d, :, :])[mask_cpu]) .<= img_shape[d]), 1:size(trj, 1)) "Cartesian trajectory values must be in the range 1:img_shape[d] for each dimension d."
128128
Ncoeff = size(U, 2)
129129
Ncoil = size(data, 3)
130130
img_idx = CartesianIndices(img_shape)

ext/MRISubspaceReconCUDAExt/CoilMaps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function MRISubspaceRecon.calculate_coil_maps(
1919
mask_calib .&= sample_mask # update mask to only take calib region of k-space in CoilwiseCG
2020

2121
x = MRISubspaceRecon.reconstruct_coilwise(data, trj_calib, calib_size; U, sample_mask=mask_calib, Niter_cg)
22-
22+
2323
imdims = ntuple(i -> i, length(img_shape))
2424
kbp = fftshift(x, imdims)
2525
fft!(kbp, imdims)

src/BackProjection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function calculate_backprojection(data::AbstractArray{Tc}, trj::AbstractArray{<:
132132
end
133133

134134
function calculate_backprojection(data::AbstractArray{Tc}, trj::AbstractArray{<:Integer,3}, img_shape; U=I(size(trj)[end]), sample_mask=trues(size(trj)[2:end])) where {Tc <: Complex}
135-
@assert all(d -> all((@view(trj[d, :, :])[sample_mask]) .>= 1) && all((@view(trj[d, :, :])[sample_mask]) .<= img_shape[d]), 1:size(trj, 1)) "Cartesian trajectory values must be in the range 1:img_shape[d] for each dimension d. Consider shifting the trajectory."
135+
@assert all(d -> all((@view(trj[d, :, :])[sample_mask]) .>= 1) && all((@view(trj[d, :, :])[sample_mask]) .<= img_shape[d]), 1:size(trj, 1)) "Cartesian trajectory values must be in the range 1:img_shape[d] for each dimension d."
136136
Ncoeff = size(U, 2)
137137
Ncoil = size(data, 3)
138138
img_idx = CartesianIndices(img_shape)

0 commit comments

Comments
 (0)