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

Migrate GenericMap to inherit from NDCube #7547

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

Conversation

Cadair
Copy link
Member

@Cadair Cadair commented Apr 3, 2024

This PR is made from a feature branch[1] which is going to form the core of the NDCube sprint work at the coordination meeting in a few weeks.

The first commit moves all the metadata model properties out on to a mixin class, as the plan is to not touch them during the refactor.


[1] oh wow it's been a while since we did this. EDIT FROM NABIL: NOT TRUE

"""
Returns PC matrix from the scale ration (lam) and rotation
angle in radians (angle).
def wcs(self):
Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't moved wcs as it will be part of the refactoring.

@Cadair Cadair force-pushed the map_ndcube_migration branch 2 times, most recently from d7ff851 to 52e083d Compare April 24, 2024 09:46
# If the units are different to the original metadata then we override
# all the keys from the new WCS header to account for unit conversion.
if any([new_header[f"CUNIT{n}"] != self.meta[f"CUNIT{n}"] for n in range(1, 3)]):
# TODO: Do we want to make it so we don't change units?
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO, do this.

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

Successfully merging this pull request may close these issues.

None yet

5 participants