Skip to content

Commit

Permalink
Fix bug riogroup#70 that a warning is raised if id_type is "majorbody…
Browse files Browse the repository at this point in the history
…" when looking Horizons.
  • Loading branch information
altairgomes committed Jun 9, 2022
1 parent 3bdd1df commit d69ccc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sora/ephem/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def ephem_horizons(time, target, observer, id_type='smallbody', output='ephemeri
if getattr(observer, 'ephem', None) not in ['horizons', None]:
warnings.warn('Ephemeris using kernel for the observer and Horizons for the target is under construction. '
'We will use only Horizons.')
id_type = None if id_type == 'majorbody' else id_type
ob = Horizons(id=target, id_type=id_type, location=location, epochs=time2)

if output == 'ephemeris':
Expand Down

0 comments on commit d69ccc0

Please sign in to comment.