Skip to content

Commit f5ab18b

Browse files
committed
fix: call correct heyoka method in mascon_asteroid
1 parent 1fe6fcb commit f5ab18b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cascade.py/dynamics/_mascon_asteroid.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def mascon_asteroid(Gconst: float, points, masses, omega) -> typing.List[typing.
3838
Returns:
3939
The dynamics in the same units used by the input arguments. Can be used directly to instantiate a :class:`~cascade.sim`.
4040
"""
41-
from heyoka import make_mascon_system
42-
return make_mascon_system(Gconst, points, masses, omega)
41+
return hy.model.mascon(Gconst, masses, points, omega)
4342

4443
def mascon_asteroid_energy(state, Gconst: float, points, masses, omega):
4544
"""Energy in the :class:`~cascade.dynamics.mascon_asteroid` dynamics.

0 commit comments

Comments
 (0)