Skip to content

Cannot create zero-length ComponentArray #173

@nrontsis

Description

@nrontsis

I cannot manage to create a zero length ComponentArray. Instead I get an Array back:

julia> ComponentArray(zeros(0), Axis(()))
Float64[]

This seems to be due to this line, that if deleted several things stop working in the package. I wonder what was the rationale behind that line?

I found this to affect type stability.

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