Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyproject.toml introduction #1151

Merged
merged 32 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1f6e88d
upgraded linux toolchain being pulled in
christag-ni Feb 20, 2025
89466fd
created pyproject.toml, poetry.lock file, and changed environment cre…
christag-ni Feb 24, 2025
0d3a97c
fixed directory variable
christag-ni Feb 24, 2025
1542da9
rearranged order of commands to directory exists
christag-ni Feb 24, 2025
520b4f3
added print statement for testing
christag-ni Feb 24, 2025
0ad9704
another print statement for testing
christag-ni Feb 24, 2025
0513864
change command for ubuntu, remove prints, and refactor path
christag-ni Feb 24, 2025
0b74213
f -> rf
christag-ni Feb 24, 2025
be32394
print what's inside examples folder
christag-ni Feb 24, 2025
27bdc31
fixed variable reference
christag-ni Feb 24, 2025
0f98f84
used move operation
christag-ni Mar 6, 2025
ba1a0dc
fixed move operation
christag-ni Mar 6, 2025
4cfb33c
ran black over file
christag-ni Mar 6, 2025
311587f
concatenate file path
christag-ni Mar 11, 2025
658a880
deconcatenate and use string convert
christag-ni Mar 11, 2025
cecc304
use string convert for other variable
christag-ni Mar 11, 2025
c0832d8
convert strings to paths
christag-ni Mar 11, 2025
9e72fa3
concatenate file path
christag-ni Mar 11, 2025
195d6f4
remove conversion to path
christag-ni Mar 11, 2025
4254eec
convert args to strings
christag-ni Mar 11, 2025
7cb92c4
moved files from repo root to examples path
christag-ni Mar 11, 2025
bfba887
removed 2nd file move
christag-ni Mar 11, 2025
fe7ac80
removed unused function
christag-ni Mar 11, 2025
c91253e
move files not to output_path
christag-ni Mar 11, 2025
4a4a3f4
changed pyproject.toml name and used poetry lock
christag-ni Mar 12, 2025
c941df1
lock to later version of poetry
christag-ni Mar 12, 2025
8c59ecf
bump poetry version
christag-ni Mar 12, 2025
6961d03
regenerated poetry.lock using new version
christag-ni Mar 12, 2025
902319a
run black over exampes folder
christag-ni Mar 12, 2025
099dac9
added override for nifpga
christag-ni Mar 12, 2025
e4df285
revert changes to toolchain
christag-ni Mar 13, 2025
5e24e7f
Merge branch 'main' into users/christag-ni/upgrade-toolchain
christag-ni Mar 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install poetry for validate_examples.py
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.2.2
poetry-version: 1.8.2

- name: Validate examples (except aio)
run: |
Expand Down
2 changes: 1 addition & 1 deletion examples/nifpga/read_write_array_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
r""" Read and Write to Arrays.
r"""Read and Write to Arrays.

The gRPC API is built from the C API. NI-FPGA documentation is installed with the driver at:
C:\Program Files (x86)\National Instruments\FPGA Interface C API\capi.chm
Expand Down
10 changes: 5 additions & 5 deletions examples/nifpga/read_write_fifo_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
r""" Read and Write to controls and FIFO.
r"""Read and Write to controls and FIFO.

The gRPC API is built from the C API. NI-FPGA documentation is installed with the driver at:
C:\Program Files (x86)\National Instruments\FPGA Interface C API\capi.chm
Expand All @@ -7,8 +7,8 @@

To run this example with your VI, you need to configure the values below.
Additionally, you should have a VI that includes controls and FIFOs, and update the
references for them below. Ensure that the R-Series drivers are installed on the system
where the gRPC-device server is running. You will also need LABVIEW and the LABVIEW FPGA
references for them below. Ensure that the R-Series drivers are installed on the system
where the gRPC-device server is running. You will also need LABVIEW and the LABVIEW FPGA
module to configure the VIs.

For instructions on how to use protoc to generate gRPC client interfaces, see our "Creating a gRPC
Expand All @@ -21,8 +21,8 @@
If they are not passed in as command line arguments, then by default the server address will be
"localhost:31763", with "FPGA" as the resource name.

In this example, we specify the number of elements to write to the FIFO and provide
a multiplier as input. We then read elements from another FIFO, which contains the multiplied
In this example, we specify the number of elements to write to the FIFO and provide
a multiplier as input. We then read elements from another FIFO, which contains the multiplied
values of the elements from the first FIFO.
"""

Expand Down
2 changes: 1 addition & 1 deletion examples/nirfmxcdma2k/acp.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
To run this example, install "RFmx CDMA2k" on the server machine.
Link: https://www.ni.com/en-us/support/downloads/software-products/download.rfmx-cdma2k.html

For instructions on how to use protoc to generate gRPC client interfaces, see our "Creating a
For instructions on how to use protoc to generate gRPC client interfaces, see our "Creating a
gRPC Client" wiki page.
Link: https://github.com/ni/grpc-device/wiki/Creating-a-gRPC-Client

Expand Down
1 change: 0 additions & 1 deletion examples/nirfmxdemod/ADemod-AM-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"localhost:31763", with "SimulatedDevice" as the resource name
"""


import sys

import grpc
Expand Down
1 change: 0 additions & 1 deletion examples/nirfmxtdscdma/acp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"localhost:31763", with "SimulatedDevice" as the resource name
"""


import sys

import grpc
Expand Down
1 change: 0 additions & 1 deletion examples/nirfmxtdscdma/modacc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"localhost:31763", with "SimulatedDevice" as the resource name
"""


import sys

import grpc
Expand Down
6 changes: 3 additions & 3 deletions examples/nixnet/can-signal-single-point-output.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
r""" Write Signal Data.
r"""Write Signal Data.

This example writes a signal value for 10 times.
This is used to demonstrate a signal single point output session.
This is used to demonstrate a signal single point output session.
This example uses hardcoded signal names that use the NIXNET_example database.
To use your own database, you need to add an alias to your database file using the NI-XNET
To use your own database, you need to add an alias to your database file using the NI-XNET
Database Editor and then modify the database name and signals used here.
Also ensure that the transceivers are externally powered when using C Series modules.

Expand Down
6 changes: 3 additions & 3 deletions examples/nixnet/ethernet-frame-stream-input-reader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
r""" Reads all the frame on network.
r"""Reads all the frame on network.

This example reads all the frames on the network and displays them.
This example reads all the frames on the network and displays them.
This is used to demonstrate a frame input stream session.
Ensure that you have connected the selected interface to another Ethernet interface that is
Ensure that you have connected the selected interface to another Ethernet interface that is
transmitting data.

The gRPC API is built from the C API. NI-XNET documentation is installed with the driver at:
Expand Down
10 changes: 5 additions & 5 deletions examples/nixnet/flexray-signal-single-point-input.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
r""" Read Signal Data.
r"""Read Signal Data.

This example reads a signal value for 10 times.
This is used to demonstrate a signal single point input session.
This example uses hardcoded signal names that use the NIXNET_example database.
This is used to demonstrate a signal single point input session.
This example uses hardcoded signal names that use the NIXNET_example database.
To use your own database, you need to add an alias to your database file using the NI-XNET
Database Editor and then modify the database name and signals used here.
Also ensure that the bus is properly terminated as this example does not enable the on-board
Expand All @@ -21,7 +21,7 @@

Refer to the NI XNET gRPC Wiki for the latest C Function Reference:
https://github.com/ni/grpc-device/wiki/NI-XNET-C-Function-Reference

Running from command line:
Server machine's IP address, port number, and interface name can be passed as separate command line
arguments.
Expand Down
10 changes: 5 additions & 5 deletions examples/nixnet/lin-signal-single-point-output.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
r""" Write Signal Data.
r"""Write Signal Data.

This example writes a signal value for 10 times.
This is used to demonstrate a signal single point output session.
This example uses hardcoded signal names that use the NIXNET_exampleLDF database.
This is used to demonstrate a signal single point output session.
This example uses hardcoded signal names that use the NIXNET_exampleLDF database.
To use your own database, you need to add an alias to your database file using the NI-XNET
Database Editor and then modify the database name and signals used here.
Also ensure that the transceivers are externally powered when using C Series modules.
Expand All @@ -20,7 +20,7 @@

Refer to the NI XNET gRPC Wiki for the latest C Function Reference:
https://github.com/ni/grpc-device/wiki/NI-XNET-C-Function-Reference

Running from command line:
Server machine's IP address, port number, and interface name can be passed as separate command line
arguments.
Expand Down
Loading
Loading