InvalidCountError(count, minimum)
Source¶
Bases: NumdaplotError
Raised when a count of values is lower than the minimum it needs.
Spacing needs at least 2 values when both bounds are included, and at least 1 otherwise.
Added in version 0.1.0
Parameters:
-
count(int)The rejected count.
-
minimum(int)The lowest accepted count.
Attributes:
-
countThe rejected count.
-
minimumThe lowest accepted count.
Examples:
import numdaplot as ndp
try:
ndp.Spacing(start=0, stop=1, count=0)
except ndp.InvalidCountError as error:
print(error)
# Expected a count of at least 2, got 0.