diff options
Diffstat (limited to 'simpl/peak_detection.pyx')
-rw-r--r-- | simpl/peak_detection.pyx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/simpl/peak_detection.pyx b/simpl/peak_detection.pyx index a2fc8f5..12f47b2 100644 --- a/simpl/peak_detection.pyx +++ b/simpl/peak_detection.pyx @@ -63,8 +63,11 @@ cdef class PeakDetection: property frames: def __get__(self): return [self.frame(i) for i in range(self.thisptr.num_frames())] - def __set__(self, f): - raise Exception("NotImplemented") + def __set__(self, new_frames): + cdef vector[c_Frame*] c_frames + for f in new_frames: + c_frames.push_back((<Frame>f).thisptr) + self.thisptr.frames(c_frames) def find_peaks_in_frame(self, Frame frame not None): peaks = [] |