Skip to content

Commit

Permalink
Update poetry.lock and reformat code with updated tools (#517)
Browse files Browse the repository at this point in the history
* Update poetry.lock

* Reformat using ni-python-styleguide
  • Loading branch information
bkeryan authored Feb 23, 2024
1 parent 7e8800c commit a2869af
Show file tree
Hide file tree
Showing 55 changed files with 596 additions and 486 deletions.
1 change: 1 addition & 0 deletions examples/ai_multi_task_pxie_ref_clk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of AI multitask operation."""

import pprint

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/ai_raw.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of AI raw operation."""

import pprint

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/ai_voltage_sw_timed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of AI voltage sw operation."""

import pprint

import nidaqmx
Expand Down
2 changes: 1 addition & 1 deletion examples/ao_voltage_hw_timed.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Example of AO voltage hw operation."""
import nidaqmx

import nidaqmx

with nidaqmx.Task() as task:
task.ao_channels.add_ao_voltage_chan("Dev1/ao0")
Expand Down
2 changes: 1 addition & 1 deletion examples/ao_voltage_sw_timed.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Example of AO voltage sw operation."""
import nidaqmx

import nidaqmx

with nidaqmx.Task() as task:
task.ao_channels.add_ao_voltage_chan("Dev1/ao0")
Expand Down
1 change: 1 addition & 0 deletions examples/channel_properties.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for using channel properties."""

import pprint

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/ci_count_edges.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of CI edge count operation."""

import pprint

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/ci_pulse_freq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of CI pulse frequency operation."""

import pprint

import nidaqmx
Expand Down
2 changes: 1 addition & 1 deletion examples/co_pulse_time.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Example of CO pulse time operation."""

import time

import nidaqmx
from nidaqmx.constants import AcquisitionType
from nidaqmx.types import CtrTime


with nidaqmx.Task() as task:
task.co_channels.add_co_pulse_chan_time("Dev1/ctr1", low_time=0.01, high_time=0.01)
task.timing.cfg_implicit_timing(sample_mode=AcquisitionType.CONTINUOUS)
Expand Down
1 change: 1 addition & 0 deletions examples/di_sw_timed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for reading digital signal."""

import pprint

import nidaqmx
Expand Down
2 changes: 1 addition & 1 deletion examples/do_sw_timed.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Example for writing digital signal."""

import nidaqmx
from nidaqmx.constants import LineGrouping


with nidaqmx.Task() as task:
task.do_channels.add_do_chan(
"Dev1/port0/line0:3", line_grouping=LineGrouping.CHAN_FOR_ALL_LINES
Expand Down
1 change: 1 addition & 0 deletions examples/every_n_samples_event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for reading singals for every n samples."""

import pprint

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/nidaqmx_warnings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for catching warnings in DAQmx."""

import warnings

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/pwr_hw_timed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Examples for hw timed power operation."""

import pprint

import nidaqmx
Expand Down
1 change: 1 addition & 0 deletions examples/pwr_hw_timed_stream.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Examples for hw timed power stream operation."""

import pprint

import numpy
Expand Down
1 change: 1 addition & 0 deletions examples/pwr_sw_timed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Examples for sw timed power operation."""

import pprint
import time

Expand Down
1 change: 1 addition & 0 deletions examples/system_properties.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Examples for using system properties in DAQmx."""

import nidaqmx

local_system = nidaqmx.system.System.local()
Expand Down
Loading

0 comments on commit a2869af

Please sign in to comment.