Skip to content

Use Vectorized Coordinate Conversion Everywhere  #790

Closed

Description

@philipc2

#730
sounds good to me regarding the code-base changes. Actually, not only Hongyu's helpers, but I believe we should aim to change all of such calls to vectorized calls for optimization purposes, and I think if it is too much for this PR, it can be ?handled as part of Rachel's optimization efforts.

Agreed, the following modules are the ones I was able to find that still call these functions iteratively.

  • Zonal average helper functions (integrate.py)
  • Face area helper functions (area.py)
  • Arc helper functions (arc.py)

The same applies to test case changes; I think we need to address them either as part of this PR or create an issue for that and deal with it soon. BTW, the changes would even help with the tests' execution times in our CI action runs, right? I also think the changes should be straightforward to still keep testing for arrays rather than scalars, similar to what you did here, right?

I can make changes to the test cases where appropriate. It should be a simple fix.

Originally posted by @philipc2 in #748 (comment)

Activity

  1. changed the title [-]Used Vectorized Coordinate Conversion Everywhere [/-] [+]Use Vectorized Coordinate Conversion Everywhere [/+] on May 19, 2024
  2. moved this from 📚 Backlog to 📝 To-Do in UXarray Developmenton Mar 18, 2025
  3. self-assigned this
    on Mar 18, 2025
  4. removed their assignment
    on Sep 9, 2025
  5. self-assigned this
    on Oct 28, 2025
  6. added
    scalability
    on Sep 2, 2026
  7. cmdupuis3 commented on Nov 18, 2026

    @cmdupuis3
    Collaborator

    This issue is either done or superceded in practice:

  8. moved this from 📝 To-Do to ✅ Done in UXarray Developmenton Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

scalability

Type

No type

Fields

Priority

Medium

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions