Skip to content

Commit

Permalink
Retain mean mode from white noise
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Oct 22, 2024
1 parent 47107ee commit 6122236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exponax/ic/_gaussian_random_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __call__(
wavenumer_norm_grid = jnp.linalg.norm(wavenumber_grid, axis=0, keepdims=True)
amplitude = jnp.power(wavenumer_norm_grid, -self.powerlaw_exponent / 2.0)
amplitude = (
amplitude.flatten().at[0].set(0.0).reshape(wavenumer_norm_grid.shape)
amplitude.flatten().at[0].set(1.0).reshape(wavenumer_norm_grid.shape)
)

real_key, imag_key = jr.split(key, 2)
Expand Down

0 comments on commit 6122236

Please sign in to comment.