DiamondLightSource / DiamondLightSource/dodal

Add a DEV MODE option for declaring sim beamline imports for running in simmode locally

Open
#247 5 comments 0 reactions 0 assignees View on GitHub
enhancement python
Dominant language
Python
Stars
5
Forks
13
Avg merge
3d 2h
Merged PRs (30d)
10

Description

This function looks for the BEAMLINE environment name and then tries to import the associated dodal module. When running in dev mode, the BEAMLINE environment variable isn't set, and there would be no module to import. This means we are currently unable to start hyperion in dev mode. A quick solution would be to default to importing the i03 module if we're running in dev mode.

## Acceptance Criteria
* Implement a way to get `get_beamline_based_on_environment_variable() ` in developer mode
* Ensure `hyperion.sh --skip-startup-connection` runs succesfully after doing this change (with no errors in` hyperion/tmp/dev/start_log.txt`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.