Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

wright-group/bluesky-autonomic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bluesky-autonomic

Archive notice

This project has been archived because the functionality was deemed rather specific to the usecase of yaq, and has been moved to yaqd-attune directly rather than this implementation using bluesky side shims.

It is kept here as a record of our past implementation, but was never deemed complete and will not be recieving updates for the forseeable future.

A project to add "reflexes" to bluesky settable devices.

happi

Create config file at ~/.config/happi/happi.ini

[DEFAULT]
path = ~/.local/share/happi/db.json

Populate environment variable.

$ export HAPPI_CFG=~/.config/happi/happi.ini

Dump all yaq devices into database. Note that if you do this again all devices with the same name will be rewritten.

$ yaqd list -f happi | happi update

Manually edit device_class field, putting in wright.DelayDevice and wright.OPADevice where appropriate. Also edit type field.

Test it out in Python.

import appdirs
import pathlib
import happi

# make happi client
db_path = pathlib.Path(appdirs.user_data_dir("happi")) / "db.json"
happi_backend = happi.backends.backend(db_path)
happi_client = happi.Client(database=happi_backend)

# search
happi_client.load_device(name="d1")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages