Skip to content

attrs not preserved in ak.from_numpy #3686

@DylanModesitt

Description

@DylanModesitt

Version of Awkward Array

2.8.9

Description and code to reproduce

Compare:

>>> x = ak.Array(np.zeros(10), attrs={"foo": "bar"})
>>> x.attrs
{'foo': 'bar'}

To:

>>> x = ak.from_numpy(np.zeros(10), attrs={"foo": "bar"})
>>> x.attrs
Attrs({})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe problem described is something that must be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions