Skip to content

Aligns ak.poisson's handling of lam and size to that of numpy - #5023

Merged
ajpotts merged 3 commits into
Bears-R-Us:mainfrom
drculhane:Closes-5016
Nov 12, 2025
Merged

ajpotts merged 3 commits into
Bears-R-Us:mainfrom
drculhane:Closes-5016

Conversation

@drculhane

@drculhane drculhane commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Closes #5016 and #5018

This fixes ak.poisson's handling of lam and size, which didn't match numpy's (see Issue 5016).

Along the way, I discovered that ak.broadcast_to wasn't handling ints (Issue 5018). Since np.broadcast_to does, I fixed this, and updated all of the associated unit tests.

@drculhane
drculhane marked this pull request as ready for review October 27, 2025 13:32

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

Looks good. Thanks!

Comment thread arkouda/numpy/random/generator.py Resolved
Comment thread arkouda/numpy/random/generator.py Resolved
Comment thread arkouda/numpy/util.py Resolved
Comment thread tests/numpy/random_test.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 Nov 12, 2025
Merged via the queue into Bears-R-Us:main with commit 95993ab Nov 12, 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.

Align handling of lam and size in ak.random.poisson to numpy.random.poisson

3 participants