diff --git a/script/Electric_field_loop.py b/script/Electric_field_loop.py index e9f4077..3ec26c9 100644 --- a/script/Electric_field_loop.py +++ b/script/Electric_field_loop.py @@ -58,7 +58,7 @@ for i in range(0,No_of_steps): detector2 = keithley_2a.read() #Keithley2 detector4 = caget(OTF_MODE2) #polarization in ID2 M1 = detector2/detector1 - temp_tey=temp_tey+M1; + temp_tey=temp_tey+float(M1); ADC2_temp_E1=ADC2_temp_E1+detector2; ADC1_temp_E1=ADC1_temp_E1+detector1; @@ -72,7 +72,7 @@ for i in range(0,No_of_steps): detector2 = keithley_2a.read() #Keithley2 detector4 = caget(OTF_MODE2) #polarization in ID2 M2 = detector2/detector1 - temp_tey_E2=temp_tey+M1; + temp_tey_E2=temp_tey+float(M1); ADC2_temp_E2=ADC2_temp_E2+detector2; ADC1_temp_E2=ADC1_temp_E2+detector1;