Skip to content

AttributeError: 'slice' object has no attribute 'size' #334

@tomwhite

Description

@tomwhite

Unfortunately I don't have a reproducible example, but the problem is happening here:

n_variants = int(sel.size)

sel is a ChunkRead.selection:

selection: np.ndarray | slice | None = None
which is typed as slice, so there is a missing case here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions