From d7d3eebc3b5db0d4ceb36fd5ddfb41f5f0b77a9b Mon Sep 17 00:00:00 2001 From: domfournier Date: Tue, 23 Apr 2024 13:04:48 -0700 Subject: [PATCH] Fix seed setting in directive --- SimPEG/directives/directives.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SimPEG/directives/directives.py b/SimPEG/directives/directives.py index d9c5a590b8..71f1ec6cdf 100644 --- a/SimPEG/directives/directives.py +++ b/SimPEG/directives/directives.py @@ -400,7 +400,7 @@ def seed(self): @seed.setter def seed(self, value): if value is not None: - value = validate_integer("seed", value, min_val=1) + value = validate_integer("seed", value, min_val=0) self._seed = value def validate(self, directive_list): @@ -529,7 +529,9 @@ class BetaEstimate_ByEig(BaseBetaEstimator): """ def __init__(self, beta0_ratio=1.0, n_pw_iter=4, seed=None, **kwargs): - super().__init__(beta0_ratio, seed, **kwargs) + super().__init__( + beta0_ratio=beta0_ratio, n_pw_iter=n_pw_iter, seed=seed, **kwargs + ) self.n_pw_iter = n_pw_iter @property