Skip to content

Quick access Dimension indices #1166

@jamesalster

Description

@jamesalster

I find it would be useful to be able to quickly access the indices of a DimArray as a Vector rather than the DimensionalData object returned by dims(). I suppose this could be a simple method, something like the following?

function getdim(D::AbstractDimArray, args...)
    collect(dims(D, args...).val)
end

Apologies if this is covered elsewhere. I'm happy to contribute a PR if this would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions