Skip to content

Commit 2608cd2

Browse files
Remove typo in computation of 1D vel disp: select xx,yy,zz components instead of xx and yy
1 parent 348978d commit 2608cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velociraptor/catalogue/soap_catalogue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def compute_value(
325325
326326
Returns the 1D velocity dispersion as a unyt.unyt_array.
327327
"""
328-
return np.sqrt(velocity_dispersion_matrix[:, 0:2].sum(axis=1))
328+
return np.sqrt(velocity_dispersion_matrix[:, 0:3].sum(axis=1))
329329

330330

331331
class CatalogueGroup(CatalogueElement):

0 commit comments

Comments
 (0)