Skip to main content

Common Diamond specific Bluesky plans and functions

Project description

# Deprecated

To reduce the number of repositories to keep in sync, common plan functionality will be moved to the dls-dodal repository and use of this project discontinued.

dls-bluesky-core

Code CI Docs CI Test Coverage Latest PyPI version Apache License

This module stores Bluesky functionality that is common to multiple techniques or groups within the Diamond Light Source organisation, such that it can be imported by instances of BlueAPI, or built upon within more focussed plan repositories to reduce duplication.

The ‘plans’ package contains functions that describe a full operation which performs an experiment and captures data, and may wish to be available to instances of BlueAPI to allow common experiment types to be maintained centrally. The ‘stubs’ package contains modular partial instructions that may act as a building block for constructing plans, for which the implementation is common: e.g. querying APIs, standard handling of metadata The ‘tasks’ package contains instructions that are not sufficient to run a full experiment but are useful utilities for providing functionality to instances of BlueAPI: e.g. moving a motor.

PyPI

pip install dls-bluesky-core

Source code

https://github.com/DiamondLightSource/dls-bluesky-core

Documentation

https://DiamondLightSource.github.io/dls-bluesky-core

Releases

https://github.com/DiamondLightSource/dls-bluesky-core/releases

The module built from this repository is intended to either act directly as a source of plans for an instance of BlueAPI by being a planFunctions source in the config of an instance:

worker:
  env:
    sources:
      - kind: planFunctions
        module: dls_bluesky_core.plans
      - kind: planFunctions
        module: dls_bluesky_core.tasks

Or else contributing functionality that may be common with other plan repositories within Diamond.

import dls_bluesky_core.stubs  as cps

def technique_specific_plan(*args, **kwargs):
    yield from cps.common_diamond_setup()

See https://DiamondLightSource.github.io/dls-bluesky-core for more detailed documentation.

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

dls_bluesky_core-0.0.4.tar.gz (55.2 kB view details)

Uploaded Source

Built Distribution

dls_bluesky_core-0.0.4-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file dls_bluesky_core-0.0.4.tar.gz.

File metadata

  • Download URL: dls_bluesky_core-0.0.4.tar.gz
  • Upload date:
  • Size: 55.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for dls_bluesky_core-0.0.4.tar.gz
Algorithm Hash digest
SHA256 36010c1d8f352485940933a7da62b7b4b334477a38b87ae68f37d2aab3f3bb89
MD5 6e3cfe70c58df86d59cdc4f2c511e906
BLAKE2b-256 4fd13a9f3d51e1948a372998beeeaa524b21fd6ef5c67f34c8833e8e3ffcd77b

See more details on using hashes here.

File details

Details for the file dls_bluesky_core-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for dls_bluesky_core-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 060b69e750b272e6ab2a24eea8b032a3e2573f6b5c9f635af0cb2f3f9da026a1
MD5 67565676bf1739ac61f15a3cd2d525a6
BLAKE2b-256 e9f638fe0dc4f404c0898098e7e5953feb6a5fb6d7a941b59b1ac9b0b259aec4

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