Skip to content

Commit de6204a

Browse files
authored
Merge pull request #32 from bionanoimaging/fix_reample_czt
remove comment in test and changed czt input type requirement.
2 parents 914aa00 + 3365143 commit de6204a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/czt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ julia> zoomed = real.(ift(xft))
139139
0.0239759 -0.028264 0.0541186 -0.0116475 -0.261294 0.312719 -0.261294 -0.0116475 0.0541186 -0.028264
140140
```
141141
"""
142-
function czt(xin::Array{T,N}, scale, dims=1:length(size(xin));
143-
remove_wrap=false)::Array{complex(T),N} where {T,N}
142+
function czt(xin::AbstractArray{T,N}, scale, dims=1:length(size(xin));
143+
remove_wrap=false)::AbstractArray{complex(T),N} where {T,N}
144144
xout = xin
145145
if length(scale) != ndims(xin)
146146
error("Every of the $(ndims(xin)) dimension needs exactly one corresponding scale (zoom) factor, which should be equal to 1.0 for dimensions not contained in the dims argument.")

test/czt.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ using NDTools # this is needed for the select_region! function below.
1919
# check if the remove_wrap works
2020
@test abs(czt(y,zoom; remove_wrap=true)[1,1]) == 0.0
2121
@test abs(iczt(y,zoom; remove_wrap=true)[1,1]) == 0.0
22-
# @vt czt(y,zoom) select_region(upsample2(ft(y), fix_center=true), new_size=size(y))
2322
end
2423
end

0 commit comments

Comments
 (0)