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

Add np.abs and np.absolute to supported NumPy array functions in Raster #393

Merged
merged 4 commits into from
Aug 16, 2023

Conversation

rhugonnet
Copy link
Contributor

Copy link
Contributor

@erikmannerfelt erikmannerfelt left a comment

Choose a reason for hiding this comment

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

Extravagant!

@erikmannerfelt
Copy link
Contributor

Oh by the way, why are there multiple lists like that? Not for this PR, but it could be simplified to just one list, and one comprehension perhaps that adds "nan" suffixes to some of them.

@rhugonnet
Copy link
Contributor Author

It's because they are from different NumPy submodules (logical: https://numpy.org/doc/stable/reference/routines.logic.html, linear algebra: https://numpy.org/doc/stable/reference/routines.linalg.html, mathematical functions: https://numpy.org/doc/stable/reference/routines.math.html, etc...) and only a few of them have a "NaN" version.

I could add a comment with the link to NumPy each time to clarify?

@rhugonnet
Copy link
Contributor Author

Comments added to make the list organization clear!

@rhugonnet rhugonnet merged commit 530d3c6 into GlacioHack:main Aug 16, 2023
11 checks passed
@rhugonnet rhugonnet deleted the add_npabs branch August 16, 2023 22:46
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.

2 participants