Skip to content

Commit

Permalink
Merge pull request #624 from analogdevicesinc/dev/adrv9002-sdk-27
Browse files Browse the repository at this point in the history
test: adrv9002: update to the new API
  • Loading branch information
tfcollins authored Jan 22, 2025
2 parents 4beb33a + 77c5ed2 commit c7c4ca6
Show file tree
Hide file tree
Showing 265 changed files with 5,752 additions and 292 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/install_libiio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ -z "$LIBIIO_BRANCH" ]; then
fi

sudo apt-get -qq update
sudo apt-get install -y git cmake graphviz libavahi-common-dev libavahi-client-dev libaio-dev libusb-1.0-0-dev libxml2-dev rpm tar bzip2 gzip flex bison git libzstd-dev
sudo apt-get install -y build-essential git cmake graphviz libavahi-common-dev libavahi-client-dev libaio-dev libusb-1.0-0-dev libxml2-dev rpm tar bzip2 gzip flex bison git libzstd-dev
git clone -b $LIBIIO_BRANCH --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git
cd libiio
cmake . -DHAVE_DNS_SD=OFF
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on: [push, pull_request]

jobs:
Test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]
libiio: ['main', 'v0.25']

steps:
Expand All @@ -28,11 +28,11 @@ jobs:
run: pytest -v --cov=adi

Test-Emulated-HW:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.8]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -67,11 +67,11 @@ jobs:
files: results.xml

Lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -94,7 +94,7 @@ jobs:
exit $ec
Doc:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
Expand All @@ -116,7 +116,7 @@ jobs:
cd ..
DeployMainDoc:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [Test,Lint,Doc]
if: github.ref == 'refs/heads/main'

Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
destination_dir: main

DeployDevelopmentDoc:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [Test,Lint,Doc]
# Only run on pull requests to main and non-forks
if: github.event_name == 'pull_request' && github.base_ref == 'main' && ! github.event.pull_request.head.repo.fork
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
Generated documentation for this PR is available at [Link](https://analogdevicesinc.github.io/pyadi-iio/prs/${{ github.head_ref }}/index.html)
Deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [Test,Lint,Doc]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/win-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: ["windows-latest"]
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
Expand Down
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ repos:
hooks:
- id: codespell
entry: codespell --ignore-words=.codespell-whitelist --exclude-file=examples/cn0549/ml_fan_example.ipynb --skip="*.pyc,*.xml"
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.20
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
additional_dependencies: ["toml"]
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.720
# hooks:
# - id: mypy
# args: [--no-strict-optional, --ignore-missing-imports]
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<img src="https://app.codacy.com/project/badge/Grade/200b7479f5024f6ea386350ca1049077" alt="Codacy Badge">
</a>

<a href="https://www.python.org/download/releases/3.7.0/">
<img src="https://img.shields.io/badge/python-3.7+-blue.svg" alt="Python Version">
<a href="https://www.python.org/download/releases/3.8.0/">
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="Python Version">
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion adi/QuadMxFE_multi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2021-2024 Analog Devices, Inc.
# Copyright (C) 2021-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019-2024 Analog Devices, Inc.
# Copyright (C) 2019-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/ad2s1210.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023-2024 Analog Devices, Inc.
# Copyright (C) 2023-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/ad3552r.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 Analog Devices, Inc.
# Copyright (C) 2024-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
3 changes: 2 additions & 1 deletion adi/ad4020.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

import numpy as np

from adi.context_manager import context_manager
from adi.rx_tx import rx

Expand Down
3 changes: 2 additions & 1 deletion adi/ad405x.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (C) 2024 Analog Devices, Inc.
# Copyright (C) 2024-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad4110.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad4130.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad4170.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2024 Analog Devices, Inc.
# Copyright (C) 2024-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad4630.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad469x.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad4858.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (C) 2020-2024 Analog Devices, Inc.
# Copyright (C) 2020-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
2 changes: 1 addition & 1 deletion adi/ad5592r.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/ad5627.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019-2024 Analog Devices, Inc.
# Copyright (C) 2019-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
3 changes: 2 additions & 1 deletion adi/ad5686.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright (C) 2019-2024 Analog Devices, Inc.
# Copyright (C) 2019-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager

Expand Down
2 changes: 1 addition & 1 deletion adi/ad5754r.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Analog Devices, Inc.
# Copyright (C) 2020-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/ad579x.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023-2024 Analog Devices, Inc.
# Copyright (C) 2023-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/ad5940.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2021-2024 Analog Devices, Inc.
# Copyright (C) 2021-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
2 changes: 1 addition & 1 deletion adi/ad6676.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2021-2024 Analog Devices, Inc.
# Copyright (C) 2021-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
3 changes: 2 additions & 1 deletion adi/ad7124.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (C) 2019-2024 Analog Devices, Inc.
# Copyright (C) 2019-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad7134.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (C) 2024 Analog Devices, Inc.
# Copyright (C) 2024-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad717x.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad719x.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2022-2024 Analog Devices, Inc.
# Copyright (C) 2022-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
2 changes: 1 addition & 1 deletion adi/ad7291.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019-2024 Analog Devices, Inc.
# Copyright (C) 2019-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

Expand Down
3 changes: 2 additions & 1 deletion adi/ad738x.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (C) 2024 Analog Devices, Inc.
# Copyright (C) 2024-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD

from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
3 changes: 2 additions & 1 deletion adi/ad7606.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (C) 2021-2024 Analog Devices, Inc.
# Copyright (C) 2021-2025 Analog Devices, Inc.
#
# SPDX short identifier: ADIBSD


from decimal import Decimal

import numpy as np

from adi.attribute import attribute
from adi.context_manager import context_manager
from adi.rx_tx import rx
Expand Down
Loading

0 comments on commit c7c4ca6

Please sign in to comment.