Skip to content

Commit

Permalink
Fix a_seed check
Browse files Browse the repository at this point in the history
  • Loading branch information
binho authored and binho committed Feb 16, 2024
1 parent f87616a commit e40a9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phylojunction/pgm/pgm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)!
Expand Down

0 comments on commit e40a9df

Please sign in to comment.