Skip to content

dim-aware broadcast of Sampled and Categorical dim does not error but probably should #878

@tiemvanderdeure

Description

@tiemvanderdeure

MWE:

using DimensionalData
dv1 = rand(X(1:3))
dv2 = rand(X(Lookups.Categorical([1,2,3])))

bc = @d dv1 .* dv2
dims(bc)

returns an X dim with NoLookup. Probably this should not pass comparedims and just throw an error.

Multiplying a Sampled with a Projected always returns Sampled dims, I don't know if this is intentional?

dv3 = rand(X(Projected([1,2,3], crs = EPSG(4326))))
crs(@d dv3 .* dv1) # nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions