From 8b245a9ed7d06b119a19a1a3fe0672ba1dd507f5 Mon Sep 17 00:00:00 2001 From: Simeon Bird Date: Mon, 22 Sep 2025 11:21:14 -0700 Subject: [PATCH] Pass the invert phase option through to pmesh --- fastpm/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastpm/core.py b/fastpm/core.py index 5159bc0..7628f1e 100644 --- a/fastpm/core.py +++ b/fastpm/core.py @@ -110,8 +110,8 @@ def __init__(self, pm, cosmology, B=1, a_linear=1.0): def nbodystep(self): return FastPMStep(self) - def whitenoise(self, seed, unitary=False): - return self.pm.generate_whitenoise(seed, type='complex', unitary=unitary) + def whitenoise(self, seed, unitary=False, invertphase=False): + return self.pm.generate_whitenoise(seed, type='complex', unitary=unitary, invertphase=False) def linear(self, whitenoise, Pk): return whitenoise.apply(lambda k, v: