You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# apply RSD along the z axisline_of_sight= [0,0,1]
# redshift and cosmologyredshift=0.55; cosmo=cosmology.Cosmology(h=0.7).match(Omega0_m=0.31)
# the RSD normalization factorrsd_factor= (1+redshift) / (100*cosmo.efunc(redshift))
# update Position, applying RSDsrc['Position'] =src['Position'] +rsd_factor*transform.VectorProjection(src['Velocity'], line_of_sight)
AttributeError: module 'nbodykit.transform' has no attribute 'VectorProjection'
So I check the source code of transform.py but find no VectorProjection function. At first, I think maybe this function has been renamed or moved into another module. Unfortunately, there is no information about VectorProjection either in changelog or in issues, and I find it still belongs to transform and remains unchanged in the official documentation.
So I'm wondering if VectorProjection has been removed or what? I'm using the latest 0.3.15 version of nbodykit.
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to add RSD to data following an example of the guide of nbodykit
https://nbodykit.readthedocs.io/en/latest/catalogs/common-operations.html#Adding-Redshift-space-Distortions
when I encounter an error:
AttributeError: module 'nbodykit.transform' has no attribute 'VectorProjection'
So I check the source code of transform.py but find no
VectorProjection
function. At first, I think maybe this function has been renamed or moved into another module. Unfortunately, there is no information aboutVectorProjection
either in changelog or in issues, and I find it still belongs totransform
and remains unchanged in the official documentation.So I'm wondering if
VectorProjection
has been removed or what? I'm using the latest 0.3.15 version of nbodykit.The text was updated successfully, but these errors were encountered: