Skip to content

Convert location to domain name in BeamlinePrefix #1916

@shihab-dls

Description

@shihab-dls

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions