Skip to main content

Ophyd Device definitions for LCLS Beamline components

Project description

PCDS Devices

Collection of Ophyd Device subclasses for IOCs unique to PCDS

MotivationInstallation

Motivation

Ophyd presents a uniform set of abstractions for EPICS devices. Many devices at the LCLS are covered by ophyd-provided classes such as EpicsMotor and AreaDetector, but there are also many more custom and unique devices.

This repository:

  • Defines unique device classes required by the LCLS, referenced by happi and our device_config database.
  • Offers LCLS-tailored solutions for functionality not provided by ophyd
  • Provides essential tools to aid in the creation of new devices for specific applications
  • Acts as a proving ground for features that may eventually be destined for ophyd
  • ... and more!

Much of the core re-used functionality can be found in pcdsdevices.device, pcdsdevices.interface, pcdsdevices.pseudopos, and pcdsdevices.signal.

Installation

Install the most recent tagged build:

$ conda install -c conda-forge pcdsdevices

Install the most recent development build:

$ conda install pcdsdevices -c pcds-dev -c lightsource2-tag -c conda-forge

Or alternatively:

# Install the tagged version for the dependencies
$ conda install -c conda-forge pcdsdevices

# Clone the master branch:
$ git clone https://github.com/pcdshub/pcdsdevices
$ cd pcdsdevices

# And perform a development install:
$ python -m pip install -e .

Testing

Testing from psbuild-rhel7

Use the pcds conda environment:

$ source /cds/group/pcds/pyps/conda/pcds_conda

Testing without PCDS servers

Ensure you have all of the development requirements available:

$ pip install -r dev-requirements.txt

General testing steps

$ git clone https://github.com/pcdshub/pcdsdevices
$ cd pcdsdevices

# Switch to a branch that reflects what you're working on:
$ git checkout -b my_feature_branch_name

# Make your changes to files
# Install pre-commit to allow for style checks before committing
$ pre-commit install

# Run the test suite
$ python run_tests.py -v

If all is well, commit and push your changes.

If pre-commit complains about an issue, you will need to resolve it and try again.

$ git commit -a -m "ENH: my new feature"
$ git remote add my_remote git@github.com:my_username/pcdsdevices
$ git push -u my_remote my_feature_branch_name

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

pcdsdevices-10.4.0.tar.gz (522.1 kB view details)

Uploaded Source

Built Distribution

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

pcdsdevices-10.4.0-py3-none-any.whl (624.4 kB view details)

Uploaded Python 3

File details

Details for the file pcdsdevices-10.4.0.tar.gz.

File metadata

  • Download URL: pcdsdevices-10.4.0.tar.gz
  • Upload date:
  • Size: 522.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pcdsdevices-10.4.0.tar.gz
Algorithm Hash digest
SHA256 05820dca15b9ecc2812c5d707870606f2be65ca83bf54cd14cfed2e2c606db79
MD5 c47dc96f15e13f6b8eb0bf667a39a725
BLAKE2b-256 66e6c5fb84cb90dd4de78a1f357a86d749ccf647bfff9e5d517e9d0e5c757db2

See more details on using hashes here.

File details

Details for the file pcdsdevices-10.4.0-py3-none-any.whl.

File metadata

  • Download URL: pcdsdevices-10.4.0-py3-none-any.whl
  • Upload date:
  • Size: 624.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pcdsdevices-10.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1d2ca6050039bcd966d097d8c78a537f1537451dee658ddd48ef1b136cac0f
MD5 0a0fde9d6b5de1f7d9a754df672984e2
BLAKE2b-256 c8c59ec700cdf6794398b5b2a58bf937a60914a8a0159587cb874ea42f68d11e

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