if the threshold is set too high so that no extreme can be found, pyextremes gives an stacktrace which is bit hard to understand (ValueError: attempt to get argmax of an empty sequence). It'd be nice to have a proper error message saying that no extreme could be found.
When doing
if the threshold is set too high so that no extreme can be found, pyextremes gives an stacktrace which is bit hard to understand (
ValueError: attempt to get argmax of an empty sequence
). It'd be nice to have a proper error message saying that no extreme could be found.