Skip to content

Commit ffca8c1

Browse files
author
Dilmi Wickramanayake
committed
update lint errors
1 parent ee3ff1d commit ffca8c1

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

examples/nidaqmx_analog_input_filtering/nidaqmx_analog_input_filtering.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
StrainGageBridgeType,
1717
TerminalConfiguration,
1818
)
19-
from settings_enum import AnalogPause, PauseWhen
2019

2120
import nipanel
2221

@@ -32,8 +31,8 @@
3231
panel.set_value("is_running", False)
3332
panel.set_value("is_running", True)
3433
panel.set_value("stop_button", False)
35-
36-
# How to use nidaqmx: https://nidaqmx-python.readthedocs.io/en/stable/
34+
35+
# How to use nidaqmx: https://nidaqmx-python.readthedocs.io/en/stable/
3736
with nidaqmx.Task() as task:
3837
chan_type = panel.get_value("chan_type", "1")
3938
if chan_type == "1":
@@ -84,7 +83,7 @@
8483
chan.ai_filter_freq = panel.get_value("filter_freq", 0.0)
8584
chan.ai_filter_response = panel.get_value("filter_response", FilterResponse.COMB)
8685
chan.ai_filter_order = 1
87-
86+
8887
task.timing.cfg_samp_clk_timing(
8988
rate=panel.get_value("rate", 1000.0),
9089
sample_mode=AcquisitionType.CONTINUOUS,
@@ -108,7 +107,7 @@
108107
task.triggers.start_trigger.cfg_dig_edge_start_trig(
109108
trigger_source="/Dev2/PFI0", trigger_edge=panel.get_value("edge", Edge.FALLING)
110109
)
111-
task.triggers.start_trigger.anlg_edge_hyst = hysteresis = panel.get_value(
110+
task.triggers.start_trigger.anlg_edge_hyst = hysteresis = panel.get_value(
112111
"hysteresis", 0.0
113112
)
114113

examples/nidaqmx_analog_input_filtering/nidaqmx_analog_input_filtering_panel.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@
9292
min_value=1.0,
9393
step=1.0,
9494
disabled=panel.get_value("is_running", False),
95-
key = "rate"
95+
key="rate",
9696
)
9797
st.number_input(
9898
"Number of Samples",
9999
value=100,
100100
min_value=1,
101101
step=1,
102102
disabled=panel.get_value("is_running", False),
103-
key = "total_samples"
103+
key="total_samples",
104104
)
105105
st.selectbox("Actual Sample Rate", options=[panel.get_value("sample_rate")], disabled=True)
106106

@@ -207,7 +207,6 @@
207207
stx.TabBarItemData(id=7, title="Analog Reference", description=""),
208208
],
209209
default=1,
210-
211210
)
212211
trigger_type = id
213212
panel.set_value("trigger_type", trigger_type)

0 commit comments

Comments
 (0)