Skip to content

Commit ee593bf

Browse files
author
Dilmi Wickramanayake
committed
fix mypy errors
1 parent 8d23cf0 commit ee593bf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/niscope/niscope_configured_acquisition/niscope_configured_acquisition_panel.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,14 @@
155155
with right_col:
156156
with st.container(border=True):
157157
st.title("Waveform Graph")
158-
waveform_data = panel.get_value("waveform_data", [0])
159-
160-
waveform_data = {
158+
waveform_data = panel.get_value("waveform_data", [0.0])
159+
waveform_graph = {
161160
"animation": False,
162161
"tooltip": {"trigger": "axis"},
163162
"legend": {"data": ["Amplitude (V)"]},
164163
"xAxis": {
165164
"type": "category",
166-
"data": [x / record_length for x in range(len(waveform_data))], # change this
165+
"data": [x / record_length for x in range(len(waveform_data))],
167166
"name": "Time (s)",
168167
"nameLocation": "center",
169168
"nameGap": 40,
@@ -186,7 +185,7 @@
186185
},
187186
],
188187
}
189-
st_echarts(options=waveform_data, height="400px", width="75%", key="binary_graph")
188+
st_echarts(options=waveform_graph, height="400px", width="75%", key="waveform_graph")
190189
st.title("Trigger")
191190
trigger_type = stx.tab_bar(
192191
data=[

0 commit comments

Comments
 (0)