Skip to content

Commit

Permalink
fix bug from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Apr 4, 2024
1 parent fb13861 commit 51f3c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PlotlyLight.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ fix_matrix(x) = x
fix_matrix(x::AbstractMatrix) = eachrow(x)

attributes(t::Symbol) = schema.traces[t].attributes
check_attribute(trace::Symbol, attr::Symbol) = haskey(attributes(trace), attr) ||
check_attribute(trace, attr::Symbol) = haskey(attributes(Symbol(trace)), attr) ||
@warn("`$trace` does not have attribute `$attr` and will be ignored.")
check_attributes(trace::Symbol; kw...) = foreach(k -> check_attribute(trace, k), keys(kw))
check_attributes(trace; kw...) = foreach(k -> check_attribute(Symbol(trace), k), keys(kw))

#-----------------------------------------------------------------------------# Schema
struct Schema end
Expand Down

0 comments on commit 51f3c0a

Please sign in to comment.