Commit 55e48965fa90f639142288f626435ba7fe192e6b

Authored by bmarechal
1 parent 8cb3d71c15
Exists in master

abs

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -24,7 +24,7 @@
24 24  
25 25 '''optimization with non-linear least squares method'''
26 26 Ppopt, Pcov = curve_fit(P, xmes, Pmes)
27   - data_waist.append([int(f[-7:-4]), Ppopt[3]])
  27 + data_waist.append([int(f[-7:-4]), abs(Ppopt[3])])
28 28  
29 29 '''plot'''
30 30 p[0].plot(xmes, Pmes, 'o')