Caution

You're reading the documentation for a development version. For the latest released version, please have a look at 0.10.2.

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