-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Description
Stumbled across this behaviour while making some tests for materializing tables into dimarrays.
using DimensionalData: Dim, X, hasdim
ds1 = (X(1:10),)
ds2 = (Dim{:X}(1:10),)
hasdim(ds1, X) # true
hasdim(ds1, :X) # true
hasdim(ds2, X) # false
hasdim(ds2, :X) # true
ds1 == ds2 # false
Is this intended behaviour? I thought everything just worked through symbols.
In any case this is confusing because it's not obvious at all that something has Dim{:X} dimension and not X, since these behave the same way otherwise.