small improvement
This commit is contained in:
@@ -273,6 +273,7 @@ def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
|
|||||||
cpvalues = cpvalues.values.astype(int)
|
cpvalues = cpvalues.values.astype(int)
|
||||||
pwr = pwr.astype(int)
|
pwr = pwr.astype(int)
|
||||||
|
|
||||||
|
|
||||||
res = np.sum(cpvalues>pwr)
|
res = np.sum(cpvalues>pwr)
|
||||||
res2 = np.sum(cpvalues>pwr2)
|
res2 = np.sum(cpvalues>pwr2)
|
||||||
|
|
||||||
@@ -289,7 +290,7 @@ def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
|
|||||||
btdf.sort_values('delta',axis=0,inplace=True)
|
btdf.sort_values('delta',axis=0,inplace=True)
|
||||||
|
|
||||||
|
|
||||||
return res>1,btdf,res2>1
|
return res>=1,btdf,res2>=1
|
||||||
|
|
||||||
|
|
||||||
def myqueue(queue,function,*args,**kwargs):
|
def myqueue(queue,function,*args,**kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user