Skip to content

Adds negative axis handling to squeeze - #4406

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
drculhane:Closes-4405
May 16, 2025
Merged

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

Conversation

@drculhane

@drculhane drculhane commented May 15, 2025 •

Copy link
Copy Markdown
Contributor

Closes #4405, a sub-issue of 4125. Numpy functions allow for negative numbers in the axis argument (e.g. -1 means the last axis, -2 the next-to-last, etc). Arkouda has such functionality server-side, but it's not used consistently. This PR is part of a series that aims to correct that.

@ajpotts

ajpotts commented May 15, 2025

Copy link
Copy Markdown
Contributor

Looks good. Would you please add a unit test to reproduce the bug?

@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!

@drculhane

drculhane commented May 15, 2025 •

Copy link
Copy Markdown
Contributor Author

Re: unit test. In fact, I had just written a unit test for squeeze, while working on the same axis issue in the repeat function. I'll add that test to this one.

Unit test has been added.

@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.

Thanks for fixing this!

@ajpotts
ajpotts added this pull request to the merge queue May 15, 2025
@ajpotts
ajpotts removed this pull request from the merge queue due to a manual request May 15, 2025
@ajpotts

ajpotts commented May 15, 2025

Copy link
Copy Markdown
Contributor

Would you please add a description? It can be brief.

@drculhane

Copy link
Copy Markdown
Contributor Author

Description added.

@ajpotts
ajpotts added this pull request to the merge queue May 15, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 15, 2025
@ajpotts
ajpotts added this pull request to the merge queue May 15, 2025
Merged via the queue into Bears-R-Us:master with commit 51fbb5b May 16, 2025
@drculhane
drculhane deleted the Closes-4405 branch June 3, 2025 13:15
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.

Add negative axis handling to squeeze function

5 participants