Skip to main content

Tools and GUI for running the spectroscopy group beamlines at the Advanced Photon Source.

Project description

Haven

Build Status Documentation Status Code style: black License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haven_spc-2024.9.0.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

haven_spc-2024.9.0-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file haven_spc-2024.9.0.tar.gz.

File metadata

  • Download URL: haven_spc-2024.9.0.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for haven_spc-2024.9.0.tar.gz
Algorithm Hash digest
SHA256 85ac9bee10411fd884b4aeedb58da858c38a2eca8f8e1edc5c36c314f742e238
MD5 195163631008bf8a2ae58c021bd5dba9
BLAKE2b-256 e27a69b6eeb9262c238f02e126b13a5cda7badeb4fed3be61c0bcab929d40229

See more details on using hashes here.

File details

Details for the file haven_spc-2024.9.0-py3-none-any.whl.

File metadata

  • Download URL: haven_spc-2024.9.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for haven_spc-2024.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a90868b0eadb3fd61bc656904db4c0620c1bee23c1524091feaa104b01ac44c9
MD5 56d5119adf2bad2f42895cab8e715940
BLAKE2b-256 92711eb6ce96f1113ca8fa9def12a1446c4f0fb4c040a82c799afa063d6b46dd

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