Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis authored Apr 12, 2024
1 parent b1b1c80 commit 74f9196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ end
function Traces(; kw...)
data = map(x -> convert(AbstractTrace, x), values(kw))
names = keys(data)
!(values(data) isa AbstractArray) || @error "Trace element type, `$(typeof(values(data)))`` is an `AbstractArray`, not an array element type, like `Float64`."
values(data) isa AbstractArray || @error "Trace element type, `$(typeof(values(data)))`` is an `AbstractArray`, not an array element type, like `Float64`."
Traces{names,typeof(data),length(names),typeof(values(data))}(data)
end

Expand Down

0 comments on commit 74f9196

Please sign in to comment.