Caution

You're reading an old version of this documentation. If you want up-to-date information, 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