Upgraded gadget load to support variable masses. Adjusted simple3DFilter for that too.

This commit is contained in:
Guilhem Lavaux 2014-07-07 17:35:56 +02:00
parent 7df2cdbe7c
commit 8809d6c255
5 changed files with 26 additions and 10 deletions

View file

@ -156,7 +156,7 @@ def whitify(density, L, cosmo, supergenerate=1, func='HU_WIGGLES'):
print np.where(np.isnan(density_hat_super))[0].size
cube = CubeFT(Ns, L)
cube = CubeFT(L, Ns)
cube.dhat = density_hat_super
return np.fft.irfftn(density_hat_super)*Ns**1.5