No project description provided
Project description
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
Built Distribution
File details
Details for the file hardware_control-3.1.0.tar.gz
.
File metadata
- Download URL: hardware_control-3.1.0.tar.gz
- Upload date:
- Size: 11.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef2f543fbb15ef8798f445e964d1f1bccd791516c13a048805fcdc989b308d89 |
|
MD5 | 1fd2f5e50fec0effb099aaa7f98ab42e |
|
BLAKE2b-256 | a9d60d086472e76c2748fde80ca4894882150e79720d561136e5565b2a12c05a |
File details
Details for the file hardware_control-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: hardware_control-3.1.0-py3-none-any.whl
- Upload date:
- Size: 324.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca5c282b63b8b66c7f8b09e744d169e8b2113d58ead3909f4f8a4f0644c56a3 |
|
MD5 | 453f2e4ff44b984b29c9119cc4fc8277 |
|
BLAKE2b-256 | a3840317c06cd9b7bb86ee09d653164c67237408882344c82ffd93e539028e5e |