This is pretty much the same problem as this question, however, that question has been dead in the water and I don't have the reputation to revive it in the comments, yet still find myself needing to resolve the problem.
The idea is that when using peakutils to detect peaks, it ignores peaks where it plateaus (even for only two consecutive points). Has anyone created a workaround for this?
I've considered just looping through the entire dataset and moving all instances beyond the first of matching numbers down a hair to make them uneven, but that's hacky and might only work for this specific case as I'm dealing with long floats that won't matter if there is a change as small as 0.00000001
.
An example of where it'll fail is [1, 2, 3, 5, 5, 1, 2]
where 5 will not be detected as it is equal to a point next to it.
It might be worth mentioning that I found a bitbucket reference to this problem, where it is noted as a feature worth including but with no intention to do so yet (as of 2015).