From 035b0df3d85e22693d8206cc662efdee1b7557e7 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 21 Jul 2022 09:14:15 +0100 Subject: [PATCH] corrected rel_max_lost_particles type --- openmc/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/settings.py b/openmc/settings.py index 5b5c265f6..47c61e6ae 100644 --- a/openmc/settings.py +++ b/openmc/settings.py @@ -75,7 +75,7 @@ class Settings: Maximum number of lost particles .. versionadded:: 0.12 - rel_max_lost_particles : int + rel_max_lost_particles : float Maximum number of lost particles, relative to the total number of particles .. versionadded:: 0.12 @@ -517,7 +517,7 @@ class Settings: self._max_lost_particles = max_lost_particles @rel_max_lost_particles.setter - def rel_max_lost_particles(self, rel_max_lost_particles: int): + def rel_max_lost_particles(self, rel_max_lost_particles: float): cv.check_type('rel_max_lost_particles', rel_max_lost_particles, Real) cv.check_greater_than('rel_max_lost_particles', rel_max_lost_particles, 0) cv.check_less_than('rel_max_lost_particles', rel_max_lost_particles, 1)