From 859a71b5e963aa0b36cb8eceec212134895814a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Hoffimann?= Date: Tue, 29 Oct 2024 17:42:42 -0300 Subject: [PATCH] Refactor varioplane.jl --- src/empirical/varioplane.jl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/empirical/varioplane.jl b/src/empirical/varioplane.jl index 1c2195f..332c3a9 100644 --- a/src/empirical/varioplane.jl +++ b/src/empirical/varioplane.jl @@ -66,15 +66,7 @@ function EmpiricalVarioplane( rs = first(γs).abscissas # varioplane values - hs = map(γs) do γ - h = γ.ordinates - # handle NaN ordinates (i.e. empty bins) - isnan(h[1]) && (h[1] = zero(eltype(h))) - for i in 2:length(h) - isnan(h[i]) && (h[i] = h[i - 1]) - end - h - end + hs = [γ.ordinates for γ in γs] EmpiricalVarioplane(θs, rs, hs) end