diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..356db58 Binary files /dev/null and b/.DS_Store differ diff --git a/RvR_v2/classes.py b/RvR_v2/classes.py index 81b49a2..da3c27a 100644 --- a/RvR_v2/classes.py +++ b/RvR_v2/classes.py @@ -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()) @@ -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