Skip to content

Commit 33f5b44

Browse files
committed
Use i03 config client
1 parent 5d46d8f commit 33f5b44

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/mx_bluesky/hyperion/device_setup_plans/dcm_pitch_roll_mirror_adjuster.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import bluesky.plan_stubs as bps
2-
from daq_config_server.client import ConfigServer
32
from daq_config_server.models import (
43
BeamlinePitchLookupTable,
54
BeamlineRollLookupTable,
65
)
6+
from dodal.beamlines.i03 import CONFIG_CLIENT
77
from dodal.devices.beamlines.i03.undulator_dcm import UndulatorDCM
88
from dodal.devices.focusing_mirror import (
99
FocusingMirrorWithStripes,
@@ -120,8 +120,7 @@ def adjust_dcm_pitch_roll_vfm_from_lut(
120120
d_spacing_a: float = yield from bps.rd(
121121
undulator_dcm.dcm_ref().crystal_metadata_d_spacing_a
122122
)
123-
config_server = ConfigServer(url="https://daq-config.diamond.ac.uk")
124-
pitch_energy_table = config_server.get_file_contents(
123+
pitch_energy_table = CONFIG_CLIENT.get_file_contents(
125124
undulator_dcm.pitch_energy_table_path, BeamlinePitchLookupTable
126125
)
127126

@@ -137,7 +136,7 @@ def adjust_dcm_pitch_roll_vfm_from_lut(
137136
LOGGER.info("Waiting for DCM pitch adjust to complete...")
138137

139138
# DCM Roll
140-
roll_energy_table = config_server.get_file_contents(
139+
roll_energy_table = CONFIG_CLIENT.get_file_contents(
141140
undulator_dcm.roll_energy_table_path, BeamlineRollLookupTable
142141
)
143142
dcm_roll_adjuster = lookup_table_adjuster(

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)