Skip to content

AxisManager concatenates on two axes weirdly #1343

@mhasself

Description

@mhasself

When concatenating AxisManagers that have two shared axes with disjoint elements, the concatenation works properly on one axis and truncates the other.

This sort of concatenation should either concatenate both axes properly, or fail with information

>>> from sotodlib import core
>>> a1 = core.LabelAxis('a', ['a1'])
>>> a2 = core.LabelAxis('a', ['a2'])
>>> b1 = core.LabelAxis('b', ['b1'])
>>> b2 = core.LabelAxis('b', ['b2'])
>>> X1 = core.AxisManager(a1, b1)
>>> X2 = core.AxisManager(a2, b2)
>>> core.AxisManager.concatenate((X1, X2))
AxisManager(a:LabelAxis(2), b:LabelAxis(1))

It would be great to see b:LabelAxis(2) there!

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