diff --git a/script/RFscan/phase_scan_caqtdm_dv2.py b/script/RFscan/phase_scan_caqtdm_dv2.py index b855ffb..180645c 100644 --- a/script/RFscan/phase_scan_caqtdm_dv2.py +++ b/script/RFscan/phase_scan_caqtdm_dv2.py @@ -82,7 +82,7 @@ print ("Valid fit") energy_gain = energy_max phase_offset = 90 - phase_fit_max amplitude_scale = energy_gain / Ampl -power_scale = Power / math.pow(V,2) +power_scale = Power / math.pow(Ampl,2) caput(prefix + ":CALC-VSUM-PHASE-OFFSET", phase_offset) caput(prefix + ":CALC-VSUM-AMPLT-SCALE" , amplitude_scale)