8000 Fixed `get_horizons_coord()` docstring to omit an unsupported option by ayshih · Pull Request #8190 · sunpy/sunpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed get_horizons_coord() docstring to omit an unsupported option #8190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/8190.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an error in the docstring of :func:`~sunpy.coordinates.ephemeris.get_horizons_coord` that mistakenly claimed that JPL Horizons supported the specification of "s" for seconds as the unit for step size, but Horizons does not.
4 changes: 2 additions & 2 deletions sunpy/coordinates/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ def get_horizons_coord(body, time='now', id_type=None, *, include_velocity=False

Alternatively, this can be a dictionary defining a range of times and
dates; the range dictionary has to be of the form
{{'start': start_time, 'stop': stop_time, 'step':'n[y|d|m|s]'}}.
{{'start': start_time, 'stop': stop_time, 'step':'n[y|d|m]'}}.
``start_time`` and ``stop_time`` must be in a parse_time-compatible format,
and are interpreted as UTC time. ``step`` must be a string with either a
number and interval length (e.g. for every 10 seconds, ``'10s'``), or a
number and interval length (e.g. for every 10 minutes, ``'10m'``), or a
plain number for a number of evenly spaced intervals.

include_velocity : `bool`, optional
Expand Down
Loading
0