Skip to content

Commit 5fe631f

Browse files
authored
remove static path provider from i22.py (#1694)
1 parent 039ed51 commit 5fe631f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/dodal/beamlines/i22.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from pathlib import Path
2-
31
from ophyd_async.epics.adaravis import AravisDetector
42
from ophyd_async.epics.adcore import NDPluginBaseIO, NDPluginStatsIO
53
from ophyd_async.epics.adpilatus import PilatusDetector
@@ -8,15 +6,13 @@
86
from dodal.common.beamlines.beamline_utils import (
97
device_factory,
108
get_path_provider,
11-
set_path_provider,
129
)
1310
from dodal.common.beamlines.beamline_utils import set_beamline as set_utils_beamline
1411
from dodal.common.beamlines.device_helpers import CAM_SUFFIX, DET_SUFFIX, HDF5_SUFFIX
1512
from dodal.common.crystal_metadata import (
1613
MaterialsEnum,
1714
make_crystal_metadata_from_material,
1815
)
19-
from dodal.common.visit import RemoteDirectoryServiceClient, StaticVisitPathProvider
2016
from dodal.devices.bimorph_mirror import BimorphMirror
2117
from dodal.devices.focusing_mirror import FocusingMirror
2218
from dodal.devices.i22.dcm import DCM
@@ -37,19 +33,6 @@
3733
set_log_beamline(BL)
3834
set_utils_beamline(BL)
3935

40-
# Currently we must hard-code the visit, determining the visit at runtime requires
41-
# infrastructure that is still WIP.
42-
# Communication with GDA is also WIP so for now we determine an arbitrary scan number
43-
# locally and write the commissioning directory. The scan number is not guaranteed to
44-
# be unique and the data is at risk - this configuration is for testing only.
45-
set_path_provider(
46-
StaticVisitPathProvider(
47-
BL,
48-
Path("/dls/i22/data/2025/cm40643-4/"),
49-
client=RemoteDirectoryServiceClient("http://i22-control:8088/api"),
50-
)
51-
)
52-
5336

5437
@device_factory()
5538
def saxs() -> PilatusDetector:

0 commit comments

Comments
 (0)