Skip to content

Conversation

@drculhane
Copy link
Contributor

@drculhane drculhane commented Mar 12, 2025

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
Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

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

Great work. Thanks!

@drculhane drculhane force-pushed the Closes-4092-Revised branch from 96314c7 to 6f6c3a0 Compare March 12, 2025 20:48
Copy link
Contributor

@1RyanK 1RyanK left a comment

Choose a reason for hiding this comment

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

Looks good!

@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
26 checks passed
@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