Package for controlling motion devices in a BaPSF DAQ system
Project description
bapsf_motion
bapsf_motion
is a module developed for the
Basic Plasma Facility (BaPSF) at the
University of California, Los Angeles to integrate with its DAQ system
and control motion devices, such as probe drives.
GUI Development
This package uses PySide6
to develop its GUI interface. In attempts
to keep the code pythonic, we are using the feature
from __feature__ import snake_case
.
This will allow us to write code like QMainWindow.set_window_title()
instead of QMainWindow.setWindowTitle()
. To get a module set up the
__feature__
import must occur after the first PySide6
import, for
example:
from PySide6.QtWidgets import QMainWindow
from __feature__ import snake_case # noqa
Note the # noqa
, this is needed to prevent linters and code inspection
from complaining about the import order.
When this is first implement your linters and code inspection will
likely complain with unresolved instances. This is because the
Python stub files
(i.e. .pyi
files) were generated without this feature enabled. To
update your stub files follow the procedure below:
-
Determine where
PySide6
is installed. This can be done by executingpython -m pip show pyside6
in the command prompt. This show be thesite-packages
directory for you Python distribution. -
Navigate to the directory indicated by step 1.
-
Navigate into the
PySide6/
directory. -
Now execute the following command in your command prompt:
pyside6-genpyi all --feature snake_case
This will update all the stub files accordingly, and should only take a few seconds.
Project details
Release history Release notifications | RSS feed
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 bapsf_motion-0.2.0b4.tar.gz
.
File metadata
- Download URL: bapsf_motion-0.2.0b4.tar.gz
- Upload date:
- Size: 849.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6868070c21cbe2a0de64cbdac3f87cf76577d1b6d3f5e6475ae1d9b6e21c3b |
|
MD5 | d28c007e861ab9758795f5db57db71c8 |
|
BLAKE2b-256 | 0d335e1cf6d9c469d3fa4c7ac293a84043c0df3b555fe826f4403947dd4a6b0e |
File details
Details for the file bapsf_motion-0.2.0b4-py3-none-any.whl
.
File metadata
- Download URL: bapsf_motion-0.2.0b4-py3-none-any.whl
- Upload date:
- Size: 135.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cad9d2d5a43b2d4383efc270078fb678daf73d3d6fdd684d0d3c69b8271a8f1 |
|
MD5 | e3f98a3c2fdeb998756eaa9bdb7ae784 |
|
BLAKE2b-256 | aacc38d6347fa52b7e197eb59f37a53901a503fcad0101187f293276e59e1eab |