Closed heckendorfc closed 6 years ago
Odd, I thought I had already fixed this.
Semantically, I don't know if returning None
is a good idea here. It would make more sense to return an empty PeakIndex, so that the caller doesn't have to check for None
before invoking methods. For the moment, I'll merge this and try to decide which route works better for the future.
Empty scans cause errors further down the call chain and it means there's nothing to pick anyway.