Skip to content

Closes #4872: ak.randint doesn't behave the same for bool as numpy - #4873

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4872-ak.randint_doesnt_behave_the_same_for_bool_as_numpy
Sep 16, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4872-ak.randint_doesnt_behave_the_same_for_bool_as_numpy

Conversation

@1RyanK

@1RyanK 1RyanK commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

Fixed up the Chapel code for randint, and then also updated how it's handled in the Python-side. Then tests failed so updated several of them.

Closes #4872: ak.randint doesn't behave the same for bool as numpy

@1RyanK
1RyanK force-pushed the 4872-ak.randint_doesnt_behave_the_same_for_bool_as_numpy branch 2 times, most recently from 81ee991 to cbd871d Compare September 9, 2025 16:52
@1RyanK
1RyanK marked this pull request as ready for review September 9, 2025 16:52

@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 for fixing this!

Comment thread arkouda/numpy/random/legacy.py Resolved
@1RyanK
1RyanK force-pushed the 4872-ak.randint_doesnt_behave_the_same_for_bool_as_numpy branch 3 times, most recently from d3eeeee to 1aa77ed Compare September 15, 2025 13:03

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

Good work. I noted a comment that I think needs fixing, but other than that, it looks good and passes all unit tests.

Comment thread arkouda/numpy/random/legacy.py Resolved
@1RyanK
1RyanK force-pushed the 4872-ak.randint_doesnt_behave_the_same_for_bool_as_numpy branch from 2ca792e to 8ab89e8 Compare September 15, 2025 13:36

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

@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 16, 2025
Merged via the queue into Bears-R-Us:main with commit dfef1d2 Sep 16, 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.

ak.randint doesn't behave the same for bool as numpy

4 participants