At kx=ky=kz=0, in slab.mu(los), the norm2 is 0 and thus mu is nan. This leads to a nan in legpoly which propagates into nans for all multipoles in the bin containing k=0 for multipoles other than the monopole. following suggestion of @michaelJwilson, modify SlabIterator.mu in meshtools to fix this issue.
At kx=ky=kz=0, in slab.mu(los), the norm2 is 0 and thus mu is nan. This leads to a nan in legpoly which propagates into nans for all multipoles in the bin containing k=0 for multipoles other than the monopole. following suggestion of @michaelJwilson, modify SlabIterator.mu in meshtools to fix this issue.