From ff31b940e54da29407d7338edcbdb3f69babe211 Mon Sep 17 00:00:00 2001 From: jaimerzp Date: Mon, 4 Nov 2024 14:44:20 +0000 Subject: [PATCH 1/2] smooth ops --- src/tracers.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracers.jl b/src/tracers.jl index 92ee1b0..fb8cc5c 100755 --- a/src/tracers.jl +++ b/src/tracers.jl @@ -179,7 +179,7 @@ function nz_interpolate(z, nz, res; mode="linear") end end -function smooth_w_neighbors(arr::Vector{T}, k::Int = 5) where T +function smooth_w_neighbors(arr, k::Int = 5) N = length(arr) neighbors = Vector{}(undef, N) # Create an array to hold neighbor arrays From db5961f4d8a595902f8484ef8c50e0bd4a394588 Mon Sep 17 00:00:00 2001 From: jaimerzp Date: Mon, 4 Nov 2024 14:50:47 +0000 Subject: [PATCH 2/2] bug --- src/tracers.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracers.jl b/src/tracers.jl index fb8cc5c..eb06fac 100755 --- a/src/tracers.jl +++ b/src/tracers.jl @@ -179,7 +179,7 @@ function nz_interpolate(z, nz, res; mode="linear") end end -function smooth_w_neighbors(arr, k::Int = 5) +function smooth_w_neighbors(arr; k::Int = 5) N = length(arr) neighbors = Vector{}(undef, N) # Create an array to hold neighbor arrays