From c492f131957210781634f1bd96f538dc853e67e9 Mon Sep 17 00:00:00 2001 From: Yin Li <eelregit@gmail.com> Date: Thu, 1 Feb 2018 13:53:23 -0800 Subject: [PATCH 1/2] fix docstring --- nbodykit/algorithms/convpower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbodykit/algorithms/convpower.py b/nbodykit/algorithms/convpower.py index f284e731c..889838615 100644 --- a/nbodykit/algorithms/convpower.py +++ b/nbodykit/algorithms/convpower.py @@ -19,7 +19,7 @@ def get_real_Ylm(l, m): l : int the degree of the harmonic m : int - the order of the harmonic; abs(m) < l + the order of the harmonic; abs(m) <= l Returns ------- From 0d47b6a58510522ce9ef5e522fd6e4eeca10c59c Mon Sep 17 00:00:00 2001 From: Yin Li <eelregit@gmail.com> Date: Wed, 7 Mar 2018 14:20:47 -0800 Subject: [PATCH 2/2] Add comments in docstring --- nbodykit/meshtools.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nbodykit/meshtools.py b/nbodykit/meshtools.py index 51642321a..389072a8a 100644 --- a/nbodykit/meshtools.py +++ b/nbodykit/meshtools.py @@ -139,7 +139,12 @@ def mu(self, los): def nonsingular(self): """ The indices on the slab of the positive frequencies - along the dimension specified by `symmetry_axis` + along the dimension specified by `symmetry_axis`. + + This takes advantage of the fact that :class:`pmesh.pm.ComplexField` + shifts the Nyquist frequencies to the negative halves. + Therefore this ensures that the zero and Nyquist planes perpendicular + to the symmetry axis have weight 1, whereas other modes have weight 2. Returns -------