You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# called only after CHARGE with at least 7min into the roast
5885
5885
def playbackdrop(self) -> None:
5886
5886
try:
5887
5887
#needed when using device NONE
5888
-
if (self.autoDropIdx == 0 and self.timex and self.timeindexB[6] and not self.timeindex[6] and
5888
+
if (self.timeindex[0] > -1 and self.autoDropIdx == 0 and self.timex and self.timeindexB[6]>0 and self.timeindex[6] == 0 and
5889
+
(self.timex[-1] - self.timex[self.timeindex[0]]) > 7*60 and
5889
5890
((self.replayType == 0 and self.timeB[self.timeindexB[6]] - self.timeclock.elapsed()/1000. <= 0) or # by time
5890
-
(self.replayType == 1 and self.TPalarmtimeindex and self.ctemp2[-1] is not None and self.stemp2B[self.timeindexB[6]] - self.ctemp2[-1] <= 0) or # by BT
5891
-
(self.replayType == 2 and self.TPalarmtimeindex and self.ctemp1[-1] is not None and self.stemp1B[self.timeindexB[6]] - self.ctemp1[-1] <= 0))): # by ET
5891
+
(self.replayType == 1 and len(self.ctemp2)>0 and len(self.stemp2B)>self.timeindexB[6] and # pylint: disable=chained-comparison
5892
+
self.TPalarmtimeindex and self.ctemp2[-1] is not None and self.stemp2B[self.timeindexB[6]] - self.ctemp2[-1] <= 0) or # by BT
5893
+
(self.replayType == 2 and len(self.ctemp1)>0 and len(self.stemp1B)>self.timeindexB[6] and # pylint: disable=chained-comparison
5894
+
self.TPalarmtimeindex and self.ctemp1[-1] is not None and self.stemp1B[self.timeindexB[6]] - self.ctemp1[-1] <= 0))): # by ET
5892
5895
self.autoDropIdx = len(self.timex) - 2
5893
5896
self.markDropSignal.emit(False)
5894
5897
except Exception as ex: # pylint: disable=broad-except
0 commit comments