Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1576 from valdaarhun/fix_h_vec_units
Browse files Browse the repository at this point in the history
Fix unit of h_vec in cross product calculation
  • Loading branch information
astrojuanlu committed Sep 7, 2022
2 parents a4f02b6 + 302b2ba commit 88c16fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poliastro/twobody/orbit/scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def e_vec(self):
def h_vec(self):
"""Specific angular momentum vector."""
h_vec = (
np.cross(self.r.to_value(u.km), self.v.to(u.km / u.s))
np.cross(self.r.to_value(u.km), self.v.to_value(u.km / u.s))
* u.km**2
/ u.s
)
Expand Down

0 comments on commit 88c16fe

Please sign in to comment.