Skip to content

Axis.startswith,endswith,matches should return an IGroup instead of an LGroup #438

@gdementen

Description

@gdementen

Because they have a better behaviour in the presence of duplicate labels

>>> a = Axis('a=a0,a0,a1')
>>> arr = ndrange(a)
>>> arr
a  a0  a0  a1
    0   1   2
>>> arr[a.startswith('a')]
a  a0  a0  a1
    1   1   2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions