Skip to content

Commit 2eb1483

Browse files
committed
flatten matrices before doing histogram
1 parent c14fa60 commit 2eb1483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger_dispatch.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ summary_impl(name, hist::Histogram) = histogram_summary(name, hist)
8181

8282
preprocess(name, (bins,weights)::Tuple{AbstractVector{<:Real},AbstractVector{<:Real}}, data) = return preprocess(name, fit(Histogram, weights, bins), data)
8383

84-
preprocess(name, val::AbstractArray{<:Real}, data) = return preprocess(name, fit(Histogram, val), data)
84+
preprocess(name, val::AbstractArray{<:Real}, data) = return preprocess(name, fit(Histogram, collect(vec(val))), data)
8585

8686
# Split complex numbers into real/complex pairs
8787
preprocess(name, val::AbstractArray{<:Complex}, data) = push!(data, name*"/re"=>real.(val), name*"/im"=>imag.(val))

0 commit comments

Comments
 (0)