Skip to content

ak.full does not align to numpy. #4312

Closed

Description

@ajpotts

Describe the bug
ak.full does not align to numpy.

To Reproduce

In [3]:  ak.full(5, 5)
Out[3]: array([5.00000000000000000 5.00000000000000000 5.00000000000000000 5.00000000000000000 5.00000000000000000])

In [4]: import numpy as np

In [5]:  np.full(5, 5)
Out[5]: array([5, 5, 5, 5, 5])

Expected behavior
ak.full and np.full should have the same behavior.

Activity

  1. added
    bug
    on Apr 23, 2025
  2. self-assigned this
    on May 23, 2025
  3. drculhane commented on May 23, 2025

    @drculhane
    Contributor

    This is interesting. While I was working on this, I found an error in test_full_error. It raised the error it was testing for, but it did it by making a different error. I've fixed that, too, and will push up a PR shortly.

  4. added a commit that references this issue on May 28, 2025
    5e0de58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions