Skip to content

Commit efa627c

Browse files
committed
backport wciviewer
1 parent bbe5365 commit efa627c

File tree

1 file changed

+23
-19
lines changed
  • python/themachinethatgoesping/pingprocessing/widgets

1 file changed

+23
-19
lines changed

python/themachinethatgoesping/pingprocessing/widgets/wciviewer.py

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@
1313

1414
from themachinethatgoesping.pingprocessing.widgets import TqdmWidget
1515

16+
WCI_VALUE_CHOICES = [
17+
"sv/av/pv/rv",
18+
"sv/av/pv",
19+
"sv/av",
20+
"sp/ap/pp/rp",
21+
"sp/ap/pp",
22+
"sp/ap",
23+
"power/amp",
24+
"av",
25+
"ap",
26+
"amp",
27+
"sv",
28+
"sp",
29+
"pv",
30+
"pp",
31+
"rv",
32+
"rp",
33+
"power",
34+
"sv_vs_av",
35+
"sp_vs_ap"
36+
]
37+
1638
class WCIViewer:
1739
def __init__(self, pings, horizontal_pixels=1024, name="WCI", figure=None, progress=None, show=True, cmap="YlGnBu_r", **kwargs):
1840

@@ -165,25 +187,7 @@ def __init__(self, pings, horizontal_pixels=1024, name="WCI", figure=None, progr
165187
)
166188
self.w_wci_value = ipywidgets.Dropdown(
167189
description="wci value",
168-
options=[
169-
"sv/av/pv/rv",
170-
"sv/av/pv",
171-
"sv/av",
172-
"sp/ap/pp/rp",
173-
"sp/ap/pp",
174-
"sp/ap",
175-
"power/amp",
176-
"av",
177-
"ap",
178-
"amp",
179-
"sv",
180-
"sp",
181-
"pv",
182-
"pp",
183-
"rv",
184-
"rp",
185-
"power",
186-
],
190+
options=WCI_VALUE_CHOICES,
187191
value=self.args_imagebuilder["wci_value"],
188192
)
189193
self.w_wci_render = ipywidgets.Dropdown(

0 commit comments

Comments
 (0)