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

Implemented the vector transformation from one frame to another #7452

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

Conversation

Deus1704
Copy link
Contributor

@Deus1704 Deus1704 commented Feb 16, 2024

PR Description

As requested in the #7389 this PR adds a vector transformation function in the spice module that will convert the vector from one frame to another.

TODO

  • Add a Changelog
  • Add a How-To guide(?)
  • Make the example better

sunpy/coordinates/spice.py Outdated Show resolved Hide resolved
sunpy/coordinates/spice.py Outdated Show resolved Hide resolved
sunpy/coordinates/spice.py Show resolved Hide resolved
assert isinstance(result, u.Quantity)

# Check that the result has the correct shape
assert result.shape == components.shape
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we not check the output is correct?

Copy link
Contributor Author

@Deus1704 Deus1704 Feb 17, 2024

Choose a reason for hiding this comment

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

Yes, it indeed must be checked. I was also thinking of implementing a test that examines all potential frame conversions. Would that be advantageous?

@Deus1704
Copy link
Contributor Author

Yes, it indeed must be checked. I was also thinking of implementing a test that examines all potential frame conversions. Would that be advantageous?

Can you let me know if this is something we should consider or if the existing single test for conversion suffices?

@nabobalis
Copy link
Contributor

I have requested for this to be reviewed and we will wait for that.

@nabobalis nabobalis added the coordinates Affects the coordinates submodule label Mar 22, 2024
@nabobalis nabobalis added this to the 6.0.0 milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coordinates Affects the coordinates submodule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants