Skip to content
Snippets Groups Projects

plot SOH channels in user's order

Merged Lan Dam requested to merge i110_channel_order into master
2 files
+ 13
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -359,9 +359,10 @@ def replace_actual_quest_chans(
for qc in quest_chans:
actual_quest_chans = [c for c in list(actual_chans)
if qc[:-1] == c[:-1]]
quest_idx = chan_order.index(qc)
chan_order.remove(qc)
chan_order[quest_idx:quest_idx] = sorted(actual_quest_chans)
if actual_quest_chans:
quest_idx = chan_order.index(qc)
chan_order.remove(qc)
chan_order[quest_idx:quest_idx] = sorted(actual_quest_chans)
return chan_order
Loading