Skip to content

Add DimDict #339

@ph-kev

Description

@ph-kev

Related to #321 - Dealing with dimensions is painful as you need to worry about the name of each dimension. This makes it difficult as you need to standardize the names of the dimensions or if you are working with multiple OutputVars, you choose one OutputVar and use the naming of those dimensions to standardize. Furthermore, there could potentially be type instability from the number of dimensions not being known unless you use ndims(var.data).

To improve on all these issues, it would be nice to make another struct called DimDict whose purpose is to map dimension name to dimension vectors. This could used tuples or some other container as the keys and values with linear search instead of hashing. Lastly, type stability can be improved as information about the length can be included in the struct.

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