Tools and GUI for running the spectroscopy group beamlines at the Advanced Photon Source.
Project description
Haven
Bluesky tools for beamlines managed by the spectroscopy group.
"Don't fly in anything with a Capissen 38 engine, they fall right out of the sky."
Installation
Python Packing Index
Easiest way to install haven is using pip.
$ python -m pip install 'haven-spc'
Development (Conda)
haven can also use mamba for dependency management, and setuptools for installation and development.
First, download the package from github:
$ git clone https://github.com/spc-group/haven.git
$ cd haven
Then create the conda environment with mamba:
$ mamba env create -f environment.yml -n haven
lastly install the package, in developer mode:
$ conda activate haven
$ pip install -e ".[dev]"
Usage
The easiest way to start haven is to use IPython's magic run command.
$ ipython
In [1]: %run -m haven.ipython_startup
This will load some common tools, and print some useful information about how to use Haven.
Running Tests
To run tests, run
$ pytest
firefly
User-facing applications for controlling the beamlines managed by the spectroscopy group. Be sure to include the [gui] extras if you plan to use the GUI.
$ python -m pip install 'haven-spc[gui]'
$ firefly
Versioning
Haven/Firefly uses calendar versioning, with short year and short month for the MAJOR and MINOR versions, then a incremental MICRO version. For example, version 2024.7.2 is the 3rd (2) release in July (7) 2023 (23).
Packaging
Python Package Index (PyPI)
To deploy to PyPI:
$ python -m build
$ python -m twine check dist/*
$ python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file haven_spc-2025.2.1.tar.gz.
File metadata
- Download URL: haven_spc-2025.2.1.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b1888e23543f9106a2202db9bfe48a35d5d7b7a8c4bb57878e686553678962a
|
|
| MD5 |
97d0fc9e8e1b95832a8ccd84c493238b
|
|
| BLAKE2b-256 |
b376892061622da5a998f18af6047410055213dce7f140c13d8f285732938573
|
File details
Details for the file haven_spc-2025.2.1-py3-none-any.whl.
File metadata
- Download URL: haven_spc-2025.2.1-py3-none-any.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1baa7df999a4be39568f3900be7328dd66e114a9621f69340cdc86da4a98c7f
|
|
| MD5 |
58866ca6f39f77e54900b1a89c522e28
|
|
| BLAKE2b-256 |
f5ebc97912fa641b7fc297a24d56dd2297ee898ac09848ff64b1834db7273903
|