Allow inactive batches to be 0 in Python API

This commit is contained in:
Paul Romano 2015-07-01 16:47:49 +07:00
parent c5cc890df6
commit 0c3a3a8f0a

View file

@ -414,7 +414,7 @@ class SettingsFile(object):
@inactive.setter
def inactive(self, inactive):
check_type('inactive batches', inactive, Integral)
check_greater_than('inactive batches', inactive, 0)
check_greater_than('inactive batches', inactive, 0, True)
self._inactive = inactive
@particles.setter