Closed misharash closed 2 years ago
Good catch! Wonder if this is related to #273?
A similar "feature" should also exist for DDrppi_mocks
- do you mind applying the fix there as well?
Sure. Indeed DDrppi_mocks
was pretty much the same. Correction for that is now also included in #275.
General information
but I'm pretty sure the issue is general.
Issue description
I am using
Corrfunc.mocks.DDsmu_mocks.DDsmu_mocks
in python withis_comoving_dist=True
.Expected behavior
No cz vs z check and no multiplication by speed of light when
is_comoving_dist=True
.Actual behavior
I am getting warnings like
I wondered how the code doesn't fail, traced it down to this message and found that then multiplication by speed of light occurs to "fix" the data, which doesn't make sense with distances.
P.S.
With distances in Mpc/h, such small maximum values are also a problem for me, but the fixing procedure for cz/z is not applicable, and the threshold of 10 might not be the best too.