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

Improving HEK Representation #7619

Draft
wants to merge 57 commits into
base: main
Choose a base branch
from
Draft

Conversation

ahmedhosssam
Copy link
Contributor

This PR includes the work that has been done in GSoC 23 but in a new and fresh branch to start GSoC 24.
I've migrated GSoC 23 commits and resolved most of the conflicts, it needs a review to see if there is any conflict remaining.

@nabobalis
Copy link
Contributor

You will need to add regions to https://github.com/sunpy/sunpy/blob/main/pyproject.toml#L77 so it is installed.

sunpy/net/hek/hek.py Outdated Show resolved Hide resolved
sunpy/net/hek/hek.py Outdated Show resolved Hide resolved
sunpy/net/hek/hek.py Outdated Show resolved Hide resolved
sunpy/net/hek/util.py Outdated Show resolved Hide resolved
sunpy/net/hek/util.py Outdated Show resolved Hide resolved
sunpy/net/hek/hek.py Outdated Show resolved Hide resolved
sunpy/net/hek/util.py Outdated Show resolved Hide resolved
sunpy/net/hek/util.py Outdated Show resolved Hide resolved
sunpy/net/hek/utils.py Outdated Show resolved Hide resolved
Comment on lines +15 to +16
UNIT_FILE_PATH = Path(os.path.dirname(__file__)) / "unit_properties.json"
COORD_FILE_PATH = Path(os.path.dirname(__file__)) / "coord_properties.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think these can be added to the all and imported else where as required.

COORD_FILE_PATH = Path(os.path.dirname(__file__)) / "coord_properties.json"

def freeze(obj):
""" Create hashable representation of result dict. """
Copy link
Contributor

@nabobalis nabobalis May 31, 2024

Choose a reason for hiding this comment

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

Suggested change
""" Create hashable representation of result dict. """
"""
Create a hashable representation of a dict or list.
Otherwise returns the original input.
"""

Copy link
Contributor

Choose a reason for hiding this comment

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

I take issue with the function name but that's a separate conversation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants