Skip to content

Commit

Permalink
fix for infnanstd bug
Browse files Browse the repository at this point in the history
  • Loading branch information
a2ray committed May 25, 2024
1 parent 4bb1365 commit 63ac132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommonToAll.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ end
infnanmean(x, dims) = mapslices(infnanmean,x,dims=dims)

function infnanstd(x)
idx = .!isnan.(x) .| .!isinf.(x)
idx = .!isnan.(x) .& .!isinf.(x)
std(x[idx])
end

Expand Down

0 comments on commit 63ac132

Please sign in to comment.