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.0b5.tar.gz (849.2 kB view details)

Uploaded Source

Built Distribution

bapsf_motion-0.2.0b5-py3-none-any.whl (135.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bapsf_motion-0.2.0b5.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

Hashes for bapsf_motion-0.2.0b5.tar.gz
Algorithm Hash digest
SHA256 a627a21f74a4c5cdf06b0931fba4a42f94211d7ebf1c8131171152ebee94d314
MD5 af3a07a7140df028492b90c9becdb3b0
BLAKE2b-256 478da5b4b707c470d1c66d1ae2eaee5fb26f2316e54f22ddfc0ff416aeb6c821

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bapsf_motion-0.2.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 fe14a56b8f3d75e48b7c7dcf6426c80348d713525f1a3f92d93dd1b494697020
MD5 1037b850f03a92ab2f0bebc1c77e83cb
BLAKE2b-256 c416ae5969fbc82e7f945cb245ca3f231e659017077daddc3980196bddb8fcd1

See more details on using hashes here.

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