Skip to content

Commit

Permalink
fix / workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tknopp committed May 3, 2021
1 parent 35b0aba commit 70b91c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Datatypes/RawAcqData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function subsampleIndices(f::RawAcquisitionData; slice::Int=1, contrast::Int=1,
encSt2 = encSteps2(f)
numEncSamp, numProf, numSl = f.params["encodedSize"]
for i=1:length(f.profiles)
# only consider data for the specified slice, constrast and repetition
# only consider data for the specified slice, contrast and repetition
if f.profiles[i].head.idx.slice+1 != slice || f.profiles[i].head.idx.contrast+1 != contrast || f.profiles[i].head.idx.repetition != 0
continue
end
Expand Down
4 changes: 2 additions & 2 deletions src/Operators/EncodingOp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function fourierEncodingOp2d(shape::NTuple{2,Int64}, tr::Trajectory, opName::Str
end

# subsampling
if !isempty(subsampleIdx) && (subsampleIdx != collect(1:size(tr,2)))
if !isempty(subsampleIdx) && (subsampleIdx != collect(1:size(tr,2))) && isCartesian(tr)
S = SamplingOp(subsampleIdx,(tr.numSamplingPerProfile,tr.numProfiles))
return S ftOp
else
Expand Down Expand Up @@ -263,7 +263,7 @@ function fourierEncodingOp3d(shape::NTuple{3,Int64}, tr::Trajectory, opName::Str
end

# subsampling
if !isempty(subsampleIdx) && length(subsampleIdx)!=size(tr,2)
if !isempty(subsampleIdx) && (subsampleIdx != collect(1:size(tr,2))) && isCartesian(tr)
S = SamplingOp(subsampleIdx,shape)
return S ftOp
else
Expand Down

2 comments on commit 70b91c8

@tknopp
Copy link
Member Author

@tknopp tknopp commented on 70b91c8 May 6, 2021

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.

Error while trying to register: "Tag with name v0.3.4 already exists and points to a different commit"

Please sign in to comment.