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

Implement axis directionality (in low-level ufuncs) #665

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hdrake
Copy link
Collaborator

@hdrake hdrake commented Mar 18, 2025

This is an attempt to revive prior efforts to add a sense of directionality to xgcm grid axes, especially #338.

Unfortunately, @gmacgilchrist's prior attempt at this PR predated the ufunc-ification of grid operations (see PR #479 and the issue it closes #344), which meant that it eventually became stale and was closed.

@hdrake
Copy link
Collaborator Author

hdrake commented Mar 18, 2025

@TomNicholas, I started reading through your big ufunc PR and the source code. I would love to take you up on your offer of walking me through the current state of the code, and then maybe you can talk me through how you would approach this PR as a concrete example. Pinging @NoraLoose, @raphaeldussin, and my new postdoc @liu-ran to keep them in the loop.

Easiest to coordinate a call over email?

@hdrake
Copy link
Collaborator Author

hdrake commented Mar 18, 2025

I think we can do this in a way that allows for Grid.cumsum and Grid.cumint operations to also be reversed (see #605), picking back up where @jbusecke left off on the stale PR #256.

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.

Proposal: grid_ufunc
1 participant