Commit d60b4b2b authored by Remy Moll's avatar Remy Moll
Browse files

WTF is going on with this data

parent f87db894
......@@ -46,7 +46,7 @@ class Channel:
def find_peaks(self):
peak_indices, _ = signal.find_peaks(np.abs(self.voltage), height=0.05)#, width=5)
peak_indices, _ = signal.find_peaks(np.abs(self.voltage), height=0.08)#, width=5)
return peak_indices
......@@ -68,6 +68,15 @@ class Channel:
return True
def __ge__(self, other):
return self.peak_index >= other.peak_index
def __eq__(self, other):
return self.peak_index == other.peak_index
def __lt__(self, other):
return self.peak_index < other.peak_index
class Event:
"""One event is the data taken across all (usually 8) channels"""
......@@ -125,5 +134,4 @@ class Measurement:
else:
timings[j,i] = -1
return timings
\ No newline at end of file
return timings
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment