From e40a9dfbb40165b3fb7e01b133f7d747f0528a72 Mon Sep 17 00:00:00 2001 From: binho Date: Fri, 16 Feb 2024 15:43:09 -0600 Subject: [PATCH] Fix a_seed check --- src/phylojunction/pgm/pgm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phylojunction/pgm/pgm.py b/src/phylojunction/pgm/pgm.py index 87a618c..86f3979 100644 --- a/src/phylojunction/pgm/pgm.py +++ b/src/phylojunction/pgm/pgm.py @@ -69,7 +69,7 @@ def random_seed(self) -> int: @random_seed.setter def random_seed(self, a_seed) -> None: # handle seed if not None, not empty string, and is integer - if a_seed and isinstance(a_seed, int): + if a_seed is not None and isinstance(a_seed, int): self._random_seed = a_seed # now we execute the seed (for two random number generators)!