I have a dataset of (x,y,dy) where dy is the errors of measurement of y (i.e., y +/- dy). I would like to fit a function func with scipy curve_fit by using dy as the weight. Do I use curve_fit(func,x,y,sigma=dy)? I found some answers using sigma=1/dy**2 as well. So, which one should I use? Thanks!