Skip to content

Closes-4092 aligns ak.transpose to numpy transpose - #4174

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
drculhane:Closes-4092-Revised
Mar 19, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
drculhane:Closes-4092-Revised

Conversation

@drculhane

@drculhane drculhane commented Mar 12, 2025 •

Copy link
Copy Markdown
Contributor

Closes #4092

This replaces the existing ak.transpose with code that calls permuteDims on the server. In this way, it matches the previous ak.transpose for 2D pdarrays, and also works for 1D and >= 3D cases, matching np.transpose.

@drculhane drculhane changed the title Closes-4092 Closes-4092 aligns ak.transpose to numpy transpose Mar 12, 2025

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work. Thanks!

Comment thread arkouda/numpy/_numeric.py Resolved
Comment thread arkouda/numpy/_numeric.py Resolved
Comment thread tests/numpy/numeric_test.py Resolved
Comment thread tests/numpy/numeric_test.py Resolved
@drculhane
drculhane force-pushed the Closes-4092-Revised branch from 96314c7 to 6f6c3a0 Compare March 12, 2025 20:48

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

Comment thread tests/numpy/numeric_test.py Resolved
@drculhane
drculhane force-pushed the Closes-4092-Revised branch from 6f6c3a0 to 4c605de Compare March 19, 2025 15:03
@ajpotts
ajpotts enabled auto-merge March 19, 2025 15:44
@ajpotts
ajpotts added this pull request to the merge queue Mar 19, 2025
Merged via the queue into Bears-R-Us:master with commit e9b094b Mar 19, 2025
@drculhane
drculhane deleted the Closes-4092-Revised branch June 3, 2025 13:12
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.

Align ak.transpose to numpy transpose

4 participants