Skip to content

Commit 7777497

Browse files
authored
Merge pull request #79 from SWIFTSIM/angular-momentum-unit
Correct unit for angular momentum in catalogue.
2 parents e811ecb + 70a51b6 commit 7777497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velociraptor/catalogue/registration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def registration_angular_momentum(
239239
raise RegistrationDoesNotMatchError
240240

241241
# All are angular momenta, so have same units.
242-
unit = unit_system.length * unit_system.velocity
242+
unit = unit_system.mass * unit_system.length * unit_system.velocity
243243

244244
# Capture group 1: axis (x, y, z)
245245
# Capture group 2: radius within this was calculated, e.g. 200crit

0 commit comments

Comments
 (0)