Commit 51711771 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

default_rng breaks the global seed.

parent f91e96bc
...@@ -332,8 +332,7 @@ def get_z_at(n, R=REARTH, t=1900., random=False): ...@@ -332,8 +332,7 @@ def get_z_at(n, R=REARTH, t=1900., random=False):
z_at[3] = t z_at[3] = t
if random: if random:
rng = np.random.default_rng() inds = np.random.choice(z_at.shape[1], size=n_ret, replace=False)
inds = rng.choice(z_at.shape[1], size=n_ret, replace=False)
return z_at[:, inds] return z_at[:, inds]
else: else:
return z_at return z_at
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment