Skip to content

Commit 7f3ecf1

Browse files
committed
Check for missing is_bb_like flag first
1 parent 7a68e6f commit 7f3ecf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/legend_data.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,12 @@ function channelinfo(data::LegendData, sel::AnyValiditySelection; system::Symbol
354354
ann_status::Symbol = Symbol(get(get(get(dpcfg[k], :psd, PropDict()), :status, PropDict()), Symbol("ann"), :unknown))
355355
coax_rt_status::Symbol = Symbol(get(get(get(dpcfg[k], :psd, PropDict()), :status, PropDict()), Symbol("coax_rt"), :unknown))
356356
is_bb_like::String = replace(get(get(dpcfg[k], :psd, PropDict()), :is_bb_like, ""), "&" => "&&")
357-
psd_usability::Symbol = if ifelse(occursin("low_aoe", is_bb_like), low_aoe_status == :valid, true) &&
357+
psd_usability::Symbol = if !(is_bb_like == "missing") &&
358+
ifelse(occursin("low_aoe", is_bb_like), low_aoe_status == :valid, true) &&
358359
ifelse(occursin("high_aoe", is_bb_like), high_aoe_status == :valid, true) &&
359360
ifelse(occursin("lq", is_bb_like), lq_status == :valid, true) &&
360361
ifelse(occursin("ann", is_bb_like), ann_status == :valid, true) &&
361-
ifelse(occursin("coax_rt", is_bb_like), coax_rt_status == :valid, true) &&
362-
!(is_bb_like == "missing")
362+
ifelse(occursin("coax_rt", is_bb_like), coax_rt_status == :valid, true)
363363
:on
364364
else
365365
:off

0 commit comments

Comments
 (0)