BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

try out the haven device registry #116

Closed prjemian closed 1 year ago

prjemian commented 1 year ago

https://github.com/spc-group/haven/

pip install poetry use poetry to install haven

prjemian commented 1 year ago

https://stackoverflow.com/questions/66422871/how-do-i-install-python-packages-with-poetry

prjemian commented 1 year ago

conda install -c conda-forge poetry

prjemian commented 1 year ago
(bluesky_2023_2) prjemian@zap:~$ poetry add haven

Poetry could not find a pyproject.toml file in /home/prjemian or its parents
prjemian commented 1 year ago

skip poetry and pip install from working directory:

mkdir -p ~/Documents/projects/spc-group
cd  ~/Documents/projects/spc-group
git clone https://github.com/spc-group/haven
cd haven
conda install -c conda-forge mergedeep xraydb
pip install -e .
prjemian commented 1 year ago
from haven import registry
registry.register(EpicsSignal)
registry.register(EpicsMotor)
registry.register(scaler)
registry.register(fourc)
registry.register(shutter)
prjemian commented 1 year ago

Can add haven to the environment spec with a requirement similar to this one: https://github.com/BCDA-APS/bluesky_training/blob/7620c1d95b075bb74209e26f6008547aa57c384d/bluesky/environments/environment_2023_2.yml#L118

These additions to the yaml file are needed to use the haven instrument registry as-is:

  - mergedeep
  - xraydb

  - pip:
    - https://github.com/spc-group/haven/archive/main.zip 
prjemian commented 1 year ago
canismarko commented 1 year ago

I published Haven to the PyPI: https://pypi.org/project/haven-spc/

Fair warning, the [gui] extras does not currently resolve, there's a dependency hell situation with PyQT apparently. It should work without that extra though.

prjemian commented 1 year ago

Great!

On Sat, Jul 1, 2023, 1:26 PM Mark Wolfman @.***> wrote:

I published Haven to the PyPI: https://pypi.org/project/haven-spc/

Fair warning, the [gui] extras does not currently resolve, there's a dependency hell situation with PyQT apparently. It should work without that extra though.

— Reply to this email directly, view it on GitHub https://github.com/BCDA-APS/bluesky_training/issues/116#issuecomment-1616036095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARMUMCEUVQPYCTGJCHJA4TXOBTTVANCNFSM6AAAAAAXM56Q3I . You are receiving this because you modified the open/close state.Message ID: @.***>