added announcement for hard workout
This commit is contained in:
@@ -139,12 +139,17 @@ def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
|
||||
pwr = abs(p0)/(1+(delta/abs(p2)))
|
||||
pwr += abs(p1)/(1+(delta/abs(p3)))
|
||||
|
||||
dd = 0.25*(ratio-1)
|
||||
pwr2 = pwr*(1+dd)
|
||||
|
||||
pwr *= ratio
|
||||
|
||||
|
||||
delta = delta.values
|
||||
cpvalues = cpvalues.values
|
||||
|
||||
res = np.sum(cpvalues>pwr)
|
||||
res2 = np.sum(cpvalues>pwr2)
|
||||
|
||||
btdf = pd.DataFrame(
|
||||
{
|
||||
@@ -158,4 +163,4 @@ def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
|
||||
btdf.sort_values('delta',axis=0,inplace=True)
|
||||
|
||||
|
||||
return res>1,btdf
|
||||
return res>1,btdf,res2>1
|
||||
|
||||
Reference in New Issue
Block a user