librosa.util.is_positive_int

librosa.util.is_positive_int(x)[source]

Checks that x is a positive integer, i.e. 1 or greater.

Parameters
xnumber
Returns
positivebool