Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

IndexError when masking empty jaggedArray made from offsets #239

@jrueb

Description

@jrueb

I'm trying to apply a mask onto my JaggedArray. Unfortunately, in the corner case where the JaggedArray is empty, I can an IndexError.

a = awkward.JaggedArray.fromoffsets([1, 1], [1, 1])
mask = a > 10
a[mask]

In case of arrays created by fromcounts, this seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions