From 0c3a3a8f0a670a97f95573692218e8a6423c1397 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 1 Jul 2015 16:47:49 +0700 Subject: [PATCH] Allow inactive batches to be 0 in Python API --- openmc/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/settings.py b/openmc/settings.py index f66987d185..60c74ab7af 100644 --- a/openmc/settings.py +++ b/openmc/settings.py @@ -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