Skip to content

Commit

Permalink
Whoops, this needs to be a broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Nov 10, 2024
1 parent 8c99eb3 commit 4b87463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ function extractwwtg(

iwwtg = @views wwtg[:,it,ids]
if !isnan(sum(iwwtg))
itrop = findlast(iwwtg!=0) + 1
itrop = findlast(.!iszero.(iwwtg)) + 1
ztrop[it,ids] = z[itrop,ids]
ptrop[it,ids] = p[itrop,ids]
iwwtg = @views iwwtg[1:itrop]
iz = @views z[1:itrop,ids]
for imode = 1 : nmode
iiwwtg = iwwtg .* sin.(iz./ztrop[it,ids]*pi*imode)
Expand Down

0 comments on commit 4b87463

Please sign in to comment.