Skip to content

Commit

Permalink
Merge pull request #42 from MiraGeoscience/GEOPY-1252
Browse files Browse the repository at this point in the history
Fix seed setting in directive
  • Loading branch information
domfournier authored Apr 23, 2024
2 parents 9dc65f0 + d7d3eeb commit a9b8107
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SimPEG/directives/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a9b8107

Please sign in to comment.