Skip to content

Commit

Permalink
Also fix the dcm code broken by dodal branch
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jan 10, 2025
1 parent 03b725b commit e677c93
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from dodal.devices.util.adjuster_plans import lookup_table_adjuster
from dodal.devices.util.lookup_tables import (
linear_interpolation_lut,
parse_lookup_table,
)

from mx_bluesky.common.utils.log import LOGGER
Expand Down Expand Up @@ -106,7 +107,9 @@ def adjust_dcm_pitch_roll_vfm_from_lut(
bragg_deg = energy_to_bragg_angle(energy_kev, d_spacing_a)
LOGGER.info(f"Target Bragg angle = {bragg_deg} degrees")
dcm_pitch_adjuster = lookup_table_adjuster(
linear_interpolation_lut(undulator_dcm.pitch_energy_table_path),
linear_interpolation_lut(
*parse_lookup_table(undulator_dcm.pitch_energy_table_path)
),
dcm.pitch_in_mrad,
bragg_deg,
)
Expand All @@ -116,7 +119,9 @@ def adjust_dcm_pitch_roll_vfm_from_lut(

# DCM Roll
dcm_roll_adjuster = lookup_table_adjuster(
linear_interpolation_lut(undulator_dcm.roll_energy_table_path),
linear_interpolation_lut(
*parse_lookup_table(undulator_dcm.roll_energy_table_path)
),
dcm.roll_in_mrad,
bragg_deg,
)
Expand Down

0 comments on commit e677c93

Please sign in to comment.