Skip to main content

Package for controlling motion devices in a BaPSF DAQ system

Project description

bapsf_motion

Documentation Status

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:

  1. Determine where PySide6 is installed. This can be done by executing python -m pip show pyside6 in the command prompt. This show be the site-packages directory for you Python distribution.

  2. Navigate to the directory indicated by step 1.

  3. Navigate into the PySide6/ directory.

  4. 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


Download files

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

Source Distribution

bapsf_motion-0.2.0b1.tar.gz (850.5 kB view details)

Uploaded Source

Built Distribution

bapsf_motion-0.2.0b1-py3-none-any.whl (112.5 kB view details)

Uploaded Python 3

File details

Details for the file bapsf_motion-0.2.0b1.tar.gz.

File metadata

  • Download URL: bapsf_motion-0.2.0b1.tar.gz
  • Upload date:
  • Size: 850.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for bapsf_motion-0.2.0b1.tar.gz
Algorithm Hash digest
SHA256 fc035d999809466ec26da0b0892357d9580fb9207410d891cf67a2ee8e3218ec
MD5 2cbd2723bc51035ce3b36c69b7405ffa
BLAKE2b-256 c2b2e3bc4403cbd35b58821951ab5271cfc6fb017ba8e0c9cf541f4acfa0cbd2

See more details on using hashes here.

Provenance

File details

Details for the file bapsf_motion-0.2.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for bapsf_motion-0.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a414e8848342276ced251e637d25bf834b0ef12d07386faa8a39fc81569e5b5
MD5 7d0573c72678f3a031ba9b51b299ade8
BLAKE2b-256 fa71737af5d78d0b17a8dd42419053fab86bd06fcb0cc191372f0f07689183b8

See more details on using hashes here.

Provenance

Supported by

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