librosa.util.is_positive_int

librosa.util.is_positive_int(x)[source]

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

Parameters:
xnumber
Returns:
positivebool