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

ADPD410X PyADI-IIO Examples and Setup.py #399

Open
nicolechar opened this issue Jan 11, 2023 · 8 comments
Open

ADPD410X PyADI-IIO Examples and Setup.py #399

nicolechar opened this issue Jan 11, 2023 · 8 comments

Comments

@nicolechar
Copy link

Hey, I am currently facing an issue with installing PyADI-IIO for the ADPD410X series, using the user manual provided: https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/eval-adpd410x.

  1. I have followed the whole guide step-by-step, tried installing the whole folder, installing using pip, and cloning the directory. However, all directories do not include 'setup.py'.
    image

  2. The next step indicates that there are 3 scripts for the ADPD410X example, but it is not included within the examples folder either.
    image

I will like to understand how to acquire these two files, as I am unable to test my ADPD410X using PyADI-IIO if it cannot be installed. Please give me some advice on how to acquire these files!

Thank you!

@catapangan
Copy link

Hi @nicolechar ,

Currently the scripts that the user guide is pointing to reside in the adpd410x branch of pyadi-iio (https://github.com/analogdevicesinc/pyadi-iio/tree/adpd410x)

The setup.py should be in the root folder when you clone the pyadi-iio repo.

@HRosete
Copy link
Contributor

HRosete commented Jan 12, 2023

Hello,

The setup.py is already deprecated with https://peps.python.org/pep-0632/

pyproject.toml now replaces the setup.py as well as setup.cfg. Please see this PR now merged to PYADI-IIO's master branch: #392

Also, please rebase your code. The README file is now updated to how to install PYADI-IIO with pyproject.toml. Thank you.

@nicolechar
Copy link
Author

Hello,

The setup.py is already deprecated with https://peps.python.org/pep-0632/

pyproject.toml now replaces the setup.py as well as setup.cfg. Please see this PR now merged to PYADI-IIO's master branch: #392

Also, please rebase your code. The README file is now updated to how to install PYADI-IIO with pyproject.toml. Thank you.

Got it, thanks! I managed to install using pip install pyproject.toml.

However, the issue with the missing folder for adpd410x_example.py still persists.
image
This is done following the installation of pyproject.toml.

Anyone knows where this file is and how I can install this successfully?

@catapangan
Copy link

Hi @nicolechar ,

The example script is found in the adpd410x branch of pyadi-iio.

@tfcollins
Copy link
Collaborator

@catapangan please create a PR for the example into master

@nicolechar
Copy link
Author

nicolechar commented Jan 13, 2023

Hi @nicolechar ,

The example script is found in the adpd410x branch of pyadi-iio.

Hi sorry, I cannot seem to find this. Where exactly did you get the script? The only files I see under the 'examples' folder are adpd188.py and adpd1080.py.

@catapangan
Copy link

Hi @nicolechar ,

It should be under the adpd410x folder in the examples folder: https://github.com/analogdevicesinc/pyadi-iio/tree/adpd410x/examples/adpd410x

@nicolechar
Copy link
Author

Hi @nicolechar ,

It should be under the adpd410x folder in the examples folder: https://github.com/analogdevicesinc/pyadi-iio/tree/adpd410x/examples/adpd410x

Got it! Thanks a bunch @catapangan, I am able to install it now. (-:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants