Skip to content
Snippets Groups Projects
Commit 4bce4647 authored by Emanuele Laface's avatar Emanuele Laface
Browse files

Fix ROI for Doppler in waveform

parent fa45b062
No related branches found
No related tags found
No related merge requests found
Pipeline #17557 passed
...@@ -374,7 +374,10 @@ class epicsQuery(Thread): ...@@ -374,7 +374,10 @@ class epicsQuery(Thread):
if pv=='LEBT-010:PBI-Dpl-001:FIT1-Y_RBV': if pv=='LEBT-010:PBI-Dpl-001:FIT1-Y_RBV':
y_data=list(instruments[pv].value) y_data=list(instruments[pv].value)
x_data=list(linspace(instruments['LEBT-010:PBI-Dpl-001:SPECT-MinWavelength'].value, instruments['LEBT-010:PBI-Dpl-001:SPECT-MaxWavelength'].value, len(y_data))) pixel2lambda=(instruments['LEBT-010:PBI-Dpl-001:SPECT-MaxWavelength'].value-instruments['LEBT-010:PBI-Dpl-001:SPECT-MinWavelength'].value)/1024
start_wave = instruments['LEBT-010:PBI-Dpl-001:SPECT-MinWavelength'].value + instruments['LEBT-010:PBI-Dpl-001:ROI1-MinX'].value*pixel2lambda
end_wave = instruments['LEBT-010:PBI-Dpl-001:SPECT-MinWavelength'].value + (instruments['LEBT-010:PBI-Dpl-001:ROI1-MinX'].value+instruments['LEBT-010:PBI-Dpl-001:ROI1-SizeX'].value)*pixel2lambda
x_data=list(linspace(start_wave, end_wave, len(y_data)))
instruments_return_dict[pv]['value']=list(zip(x_data,y_data)) instruments_return_dict[pv]['value']=list(zip(x_data,y_data))
continue continue
......
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