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 when converting results from the HEKClient #7627

Merged
merged 3 commits into from
May 15, 2024

Conversation

bmampaey
Copy link
Contributor

PR Description

Fixes bug where convertion of results from the HEKClient to Astropy Time failed when some values where empty or missing

@bmampaey
Copy link
Contributor Author

See #5006 (comment)

@nabobalis nabobalis added Minor Change PR only needs one approval to merge backport 5.0 on-merge: backport to 5.0 backport 5.1 on-merge: backport to 5.1 labels May 15, 2024
@nabobalis
Copy link
Contributor

Thanks for the PR @bmampaey, can you add a changelog entry marking this as a bugfix?

We have some details on the readme here: https://github.com/sunpy/sunpy/blob/main/changelog/README.rst

@nabobalis nabobalis added this to the 6.0.0 milestone May 15, 2024
@nabobalis
Copy link
Contributor

Thanks for the changelog, can you tell me what query failed for you?
I want to add it as a unit test to make sure we dont unbreak this in the future.

@bmampaey
Copy link
Contributor Author

I specified it in the issue #5006 (comment)

It was

from sunpy.net.hek import HEKClient
from sunpy.net import attrs as a
results = HEKClient().search(a.Time('2024-05-10', '2024-05-12'), a.hek.AR.NOAANum == 13664)

@nabobalis nabobalis added the Merge When CI Passes Hit that merge button when it's all green! label May 15, 2024
@nabobalis nabobalis merged commit c41733e into sunpy:main May 15, 2024
25 of 28 checks passed
@nabobalis
Copy link
Contributor

Thanks for the PR @bmampaey

meeseeksmachine pushed a commit to meeseeksmachine/sunpy that referenced this pull request May 15, 2024
meeseeksmachine pushed a commit to meeseeksmachine/sunpy that referenced this pull request May 15, 2024
nabobalis added a commit that referenced this pull request May 15, 2024
…7-on-5.0

Backport PR #7627 on branch 5.0 (Fix bug when converting results from the HEKClient )
nabobalis added a commit that referenced this pull request May 15, 2024
…7-on-5.1

Backport PR #7627 on branch 5.1 (Fix bug when converting results from the HEKClient )
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 backport 5.1 on-merge: backport to 5.1 Merge When CI Passes Hit that merge button when it's all green! Minor Change PR only needs one approval to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants