mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-06-28 16:11:11 +00:00
Update conftest.py
This commit is contained in:
parent
844cace3d7
commit
e666aada42
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ def fpm_initial_conditions(cosmo, particle_mesh):
|
|||
def pk_fn(x):
|
||||
return jnp.interp(x.reshape([-1]), k, pk).reshape(x.shape)
|
||||
|
||||
whitec = particle_mesh.generate_whitenoise(123,
|
||||
whitec = particle_mesh.generate_whitenoise(42,
|
||||
type='complex',
|
||||
unitary=False)
|
||||
lineark = whitec.apply(lambda k, v: pk_fn(sum(ki**2 for ki in k)**0.5)**0.5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue