Skip to content
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

Fix bug in get_horizons_coord time dictionary arg #7106

Merged
merged 5 commits into from Aug 31, 2023

Conversation

samaloney
Copy link
Contributor

PR Description

Fix small bug in get_horizons_coord when time is specified using the dictionary format. Update code to pass full time spec (including milliseconds) to astroquery.

Closes #7105

@samaloney samaloney force-pushed the bugfix-horizons-coord-dict branch 3 times, most recently from 77d89b2 to 0b2355f Compare July 18, 2023 12:27
@samaloney samaloney marked this pull request as ready for review July 18, 2023 12:54
@samaloney samaloney requested a review from a team as a code owner July 18, 2023 12:54
Copy link
Member

@ayshih ayshih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a line to convert the returned obstime back to UTC when a dictionary is input? That is, add a line after this one:

obstime = parse_time(result['datetime_jd'], format='jd', scale='tdb')

changelog/7106.bugfix.rst Outdated Show resolved Hide resolved
samaloney and others added 2 commits July 18, 2023 14:23
Co-authored-by: Albert Y. Shih <ayshih@gmail.com>
@nabobalis nabobalis added backport 5.0 on-merge: backport to 5.0 coordinates Affects the coordinates submodule labels Aug 17, 2023
@nabobalis nabobalis requested a review from ayshih August 17, 2023 19:13
@nabobalis nabobalis added the Minor Change PR only needs one approval to merge label Aug 17, 2023
sunpy/coordinates/ephemeris.py Outdated Show resolved Hide resolved
sunpy/coordinates/tests/test_ephemeris.py Show resolved Hide resolved
changelog/7106.bugfix.rst Outdated Show resolved Hide resolved
samaloney and others added 2 commits August 29, 2023 09:13
Co-authored-by: Albert Y. Shih <ayshih@gmail.com>
@samaloney samaloney requested a review from ayshih August 29, 2023 08:45
Copy link
Member

@ayshih ayshih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@dstansby dstansby merged commit edd3ea8 into sunpy:main Aug 31, 2023
26 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/sunpy that referenced this pull request Aug 31, 2023
@samaloney samaloney deleted the bugfix-horizons-coord-dict branch March 21, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 5.0 on-merge: backport to 5.0 coordinates Affects the coordinates submodule Minor Change PR only needs one approval to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The submitted times don't match returned times when using get_horizons_coord with dictionary time argument
4 participants