Skip to content

Dask-awkward arrays are not copyable when Coffea has been imported #878

@jrueb

Description

@jrueb

Describe the bug
dask-awkward recently fixed a bug, which now enables copying of dask-awkward arrays (dask-contrib/dask-awkward#324). However, when Coffea has been imported, dask-awkward arrays are not copyable at all. I assume this is because of
https://github.com/CoffeaTeam/coffea/blob/558f853d7fcf7313ff8093a48fb1d02bef2a5980/src/coffea/__init__.py#L51C69-L51C69

I consider the ability to copy arrays essential. For example when I apply different JEC uncertainties, I create a copy of my data, adjust the jets in the copies according to the different variations and run my code on each of the copies.

To Reproduce

from copy import copy
import awkward as ak
import dask_awkward as dak
import coffea


a = dak.from_awkward(ak.Array([1]), 1)
a_copy = copy(a)

a_copy will be None, but should be a dask-awkward array (a copy of a).

Coffea version 2023.7.0rc0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions