Skip to content

Commit

Permalink
Refactor varioplane.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Oct 29, 2024
1 parent 5905dae commit 859a71b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/empirical/varioplane.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 859a71b

Please sign in to comment.