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

Accept either arrays or maps as input where appropriate #135

Merged
merged 12 commits into from
Aug 9, 2023

Conversation

dstansby
Copy link
Member

This PR adds a decorator that can be used to mark a function argument as accepting either array or map input. There's also a flag that can convert the output of the function to a map.

To test I've modified an existing test fixture so at least one test gets run with ndarray and GenericMap input for each of the modified functions.

I think I've covered all the functions where this is appropriate, but a reviewer double checking this would be good!

Fixes #69.

@nabobalis nabobalis force-pushed the array-or-map branch 2 times, most recently from 500addb to 79dfbdf Compare August 9, 2023 21:28
@nabobalis
Copy link
Contributor

Thanks again @dstansby

@nabobalis nabobalis merged commit 26c7ef7 into sunpy:main Aug 9, 2023
15 of 16 checks passed
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.

Inconsistent input types across functions
2 participants