Skip to content

Adds axis standardization to repeat function in numpy/manipulation_functions.py - #4932

Merged
ajpotts merged 2 commits into
Bears-R-Us:mainfrom
drculhane:Closes-4931
Sep 24, 2025
Merged

ajpotts merged 2 commits into
Bears-R-Us:mainfrom
drculhane:Closes-4931

Conversation

@drculhane

@drculhane drculhane commented Sep 22, 2025 •

Copy link
Copy Markdown
Contributor

Closes #4931

The functions in this file are unique:

  • flip does the axis checking chapel-side (and correctly handles negatives & tuples)
  • repeat is this PR
  • squeeze only accepts axes whose size is 1 (e.g. (2,1,4) would allow axis 1 to be squeezed, but no other)
  • tile doesn't use an axis parameter.

Note: also expands the docstrings of some of the functions

Comment thread arkouda/numpy/manipulation_functions.py Resolved

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

Nice addition. Thanks.

@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 arkouda/numpy/manipulation_functions.py Resolved

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

@ajpotts
ajpotts added this pull request to the merge queue Sep 24, 2025
Merged via the queue into Bears-R-Us:main with commit afdc553 Sep 24, 2025
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.

Update axis handling and validation in numpy/manipulation_functions.py

4 participants