Skip to content
Snippets Groups Projects
Commit a0e3a061 authored by operator for beamline's avatar operator for beamline
Browse files

[core][axis] copy radios before calling compute_near and compute_global

parent bee11d68
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ def compute_scan_global(scan):
_logger.info('compute scan axis from global method for %s with pc_height: '
'%f, pc_width: %f' % (scan.path, pc_height, pc_width))
return compute_global(radio_1=radio_1, radio_2=radio_2,
return compute_global(radio_1=radio_1.copy(), radio_2=radio_2.copy(),
pc_height=pc_height, pc_width=pc_width)
......@@ -182,7 +182,7 @@ def compute_scan_near(scan):
scan.axis_params.fine_step_x,
scan.axis_params.look_at_stdmax))
return compute_near(radio_1=radio_1, radio_2=radio_2,
return compute_near(radio_1=radio_1.copy(), radio_2=radio_2.copy(),
near_pos=scan.axis_params.near_position,
window_size=scan.axis_params.near_wx,
fine_step_x=scan.axis_params.fine_step_x,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment