11import bluesky .plan_stubs as bps
2- from daq_config_server .client import ConfigServer
32from daq_config_server .models import (
43 BeamlinePitchLookupTable ,
54 BeamlineRollLookupTable ,
65)
6+ from dodal .beamlines .i03 import CONFIG_CLIENT
77from dodal .devices .beamlines .i03 .undulator_dcm import UndulatorDCM
88from 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 (
0 commit comments