DiamondLightSource/dodal

Convert location to domain name in BeamlinePrefix

Open

#1,916 创建于 2026年2月11日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (12 fork)auto 404
good first issue

仓库指标

Star
 (4 star)
PR 合并指标
 (PR 指标待抓取)

描述

Currently, we do this:

BL = "b01-1"
PREFIX = BeamlinePrefix(BL, suffix="C")  #PREFIX=="BL01C"

where b01-1 is the 'location' (i.e., the short domain) and BL01C is the domain name.

It would be nicer to provide BeamlinePrefix with the location, allowing it to do these conversions:

ixx -> BLxxI
ixx-1 -> BLxxJ
kxx -> BLxxK
bxx -> BLxxB
bxx-1 -> BLxxC

and accept an override to select the trailing domain letter, for exceptions such as i13-2

Acceptance Criteria

  • Do not have to provide suffix for known location->domain conventions

贡献者指南