defined one p0 in datautils for CP fits
This commit is contained in:
@@ -3,6 +3,9 @@ import numpy as np
|
||||
from scipy.interpolate import griddata
|
||||
from scipy import optimize
|
||||
|
||||
#p0 = [500,350,10,8000]
|
||||
p0 = [190,200,33,16000]
|
||||
|
||||
def updatecp(delta,cpvalues,r):
|
||||
cp2 = r.p0/(1+delta/r.p2)
|
||||
cp2 += r.p1/(1+delta/r.p3)
|
||||
@@ -38,7 +41,6 @@ def cpfit(powerdf):
|
||||
fitfunc = lambda pars,x: abs(pars[0])/(1+(x/abs(pars[2]))) + abs(pars[1])/(1+(x/abs(pars[3])))
|
||||
errfunc = lambda pars,x,y: fitfunc(pars,x)-y
|
||||
|
||||
p0 = [500,350,10,8000]
|
||||
|
||||
p1 = p0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user