Skip to content

Commit

Permalink
address some of the feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Oct 28, 2024
1 parent 6e611f2 commit 905eda6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/dodal/beamlines/i22.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@

BL = get_beamline_name("i22")
IS_LAB = BL == "p38"
LINKAM_IS_IN_LAB = False
PREFIX = BeamlinePrefix(BL)
set_log_beamline(BL)
set_utils_beamline(BL)

VISIT_PATH: Path = Path(f"/dls/${BL}/data/2024/cm37271-2/bluesky")

VISIT_PATH: Path = Path(
f"/dls/${'p38' if IS_LAB else 'i22'}/data/2024/cm37271-2/bluesky"
)
API_URL: str = f"http://{'p38' if IS_LAB else 'i22'}-control:8088/api"
API_URL: str = f"http://{BL}-control:8088/api"

# Currently we must hard-code the visit, determining the visit at runtime requires
# infrastructure that is still WIP.
Expand Down Expand Up @@ -281,7 +278,7 @@ def oav() -> AravisDetector | NXSasOAV:
)


@device_factory(skip=IS_LAB != LINKAM_IS_IN_LAB)
@device_factory()
def linkam() -> Linkam3:
if IS_LAB:
return Linkam3(prefix=f"{PREFIX.beamline_prefix}-EA-LINKM-02")
Expand Down

0 comments on commit 905eda6

Please sign in to comment.