Skip to main content

No project description provided

Project description

read-the-docs PyPI version pre-commit Ruff DOI

What is this repository for?

The goal is to provide reusable code for hardware control using python and Qt.

Documentation can be found at Read the Docs.

How do I get set up?

The easiest way is to pip install the software:

pip install hardware-control

Examples

If you want to have a quick look at some basic functionality, you can run the demos in the example directory. If you have the same hardware that is used in the example, you will have to update the connection address, e.g. ip address. Otherwise, you can still run the examples by providing the --dummy command line argument that will simulate instrument output. The logging level can also be redirected to the terminal using --console and the log-level changed by providing --info or --debug options on the command line.

Tests

We use pytest to provide some simple tests for some of the functionallity of the package. However, to check if an instrument is really working, one needs to have the instrument connected, which makes testing harder. When the instruments are not available some functionallity, such as the Qt layout, can still be tested using "--dummy" mode. In this mode instrument parameters can return a predefined value or the result of a function.

To run the tests use:

python -m pytest

Contribution guidelines

Feel free to contribute new drivers for hardware or other changes.

We use black to format the code, so please format your code accordingly. The easiest way to achieve this is to install pre-commit and use the config file we provide:

pip install pre-commit
# cd into repo
pre-commit install

How to cite this package

Please use the following citation.

@article{Giesbrecht2022,
  doi = {10.21105/joss.02688},
  url = {https://doi.org/10.21105/joss.02688},
  year = {2022},
  publisher = {The Open Journal},
  volume = {7},
  number = {72},
  pages = {2688},
  author = {Grant Giesbrecht and Ariel Amsellem and Timo Bauer and Brian Mak and Brian Wynne and Zhihao Qin and Arun Persaud},
  title = {Hardware-Control: Instrument control and automation package},
  journal = {Journal of Open Source Software}
}

Who do I talk to?

If you have questions, please contact Arun at apersaud@lbl.gov.

Copyright and License

See the files COPYRIGHT and LICENSE in the top level directory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hardware_control-4.1.0.tar.gz (14.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hardware_control-4.1.0-py3-none-any.whl (363.5 kB view details)

Uploaded Python 3

File details

Details for the file hardware_control-4.1.0.tar.gz.

File metadata

  • Download URL: hardware_control-4.1.0.tar.gz
  • Upload date:
  • Size: 14.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hardware_control-4.1.0.tar.gz
Algorithm Hash digest
SHA256 f26a07bbb916ef29b42b0dafde5c788c5cfbf15f7a5d9703509ceecbad814d73
MD5 bd0fa7b1c61d5329ea61493f46f68027
BLAKE2b-256 38730895ccaef454b4ebde8621a6a79bebfe734bae47126931f82f7d82670b59

See more details on using hashes here.

File details

Details for the file hardware_control-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: hardware_control-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 363.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hardware_control-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5a761e9c1036c17dbc7c665ef57aefb9fe0f20f0fdd521c5b7714da8be62218
MD5 fb64c64006ff257d9d8f51299aa6f947
BLAKE2b-256 7afeb9a5610394901d4f4e03f37d61fda12ed1649edcf2cf184bc95b2d188373

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page