Private
Public Access
1
0

fixing some tests, fixes for failing tests

This commit is contained in:
2024-04-16 13:17:36 +02:00
parent 0d819a5316
commit e6826d75c5
7 changed files with 24 additions and 19 deletions

View File

@@ -83,6 +83,7 @@ def cpfit(powerdf, fraclimit=0.0001, nmax=1000):
thesecs = powerdf['Delta'].to_numpy()
theavpower = powerdf['CP'].to_numpy()
if len(thesecs) >= 4:
try:
@@ -95,6 +96,7 @@ def cpfit(powerdf, fraclimit=0.0001, nmax=1000):
else:
factor = fitfunc(p0, thesecs.mean())/theavpower.mean()
p1 = [p0[0]/factor, p0[1]/factor, p0[2], p0[3]]
p1 = [abs(p) for p in p1]
fitt = pd.Series(10**(4*np.arange(100)/100.))