Skip to content

Commit

Permalink
update RvR, revise defining below threshold before running
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmaaaaa committed Oct 22, 2023
1 parent cfe6ad4 commit 5c056a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions RvR_v2/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ def running_analysis(self):
windowStart = self.find_nearest(self.rawData['Time'], ETA_Changes[change][0])
windowEnd = self.find_nearest(self.rawData['Time'], ETA_Changes[change][1])


self.dataWindows['FLP Time'].append(self.rawData['Time'][windowStart:windowEnd].tolist())
self.dataWindows['Intensity'].append(self.rawData['Intensity'][windowStart:windowEnd].tolist())
self.dataWindows['Empirical Lifetime'].append(self.rawData['Empirical Lifetime'][windowStart:windowEnd].tolist())
Expand Down Expand Up @@ -507,7 +508,10 @@ def interp_AVG(self, data, dataTime, length):
def FindMaxLength(self, lst):
for lst_idx in range(len(lst)):
lst[lst_idx] = [i for i in lst[lst_idx] if math.isnan(i) == False]

maxLength = max(map(len, lst))


return maxLength


Expand Down

0 comments on commit 5c056a8

Please sign in to comment.