Skip to content

issue a warning or error on constructing Axis with duplicate symbols #130

@bgctw

Description

@bgctw

Currently, constructing an Axis from a Tuple of symbols silently ignores duplicate symbols and only records position of the last occurrence:

julia> Axis((:a,:a))
Axis(a = 2,)

What is the reason for this behavior?

My use case is attaching positions to an existing Vector: ComponentVector([1,2],Axis((:a,:a)))
I would expect at least a warning here.

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