Skip to content

Commit

Permalink
Change id_type default to None
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-10 committed Nov 29, 2021
1 parent 3ee0c18 commit 9cc5a4d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/poliastro/ephem.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ def from_horizons(
*,
attractor=None,
plane=Planes.EARTH_EQUATOR,
id_type="smallbody",
id_type=None,
):
"""Return `Ephem` for an object using JPLHorizons module of Astroquery.
Parameters
----------
name : string
name : str
Name of the body to query for.
epochs: ~astropy.time.Time
Epochs to sample the body positions.
Expand All @@ -262,9 +262,9 @@ def from_horizons(
if not given the Solar System Barycenter will be used.
plane : ~poliastro.frames.Planes, optional
Fundamental plane of the frame, default to Earth Equator.
id_type : str, optional
Use "smallbody" for Asteroids and Comets (default), and "majorbody"
for Planets and Satellites.
id_type : NoneType or str, optional
Use "smallbody" for Asteroids and Comets and None (default) to first
search for Planets and Satellites.
"""
if epochs.isscalar:
Expand Down

0 comments on commit 9cc5a4d

Please sign in to comment.