Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self defined Dim didn't support Selector functions #369

Closed
kongdd opened this issue Mar 24, 2022 · 2 comments
Closed

self defined Dim didn't support Selector functions #369

kongdd opened this issue Mar 24, 2022 · 2 comments

Comments

@kongdd
Copy link

kongdd commented Mar 24, 2022

using DimensionalData

ix = 3:4
iy = 5:6
da = DimArray(rand(2, 2), (x = ix, y = iy))

da[x = ix .== 3] # works
da[x(At(3))] # not work
@kongdd
Copy link
Author

kongdd commented Mar 24, 2022

Sorry, I found the solution in your test scripts: da[x = At(3)] # works.
Thanks for your awesome pkg.

@kongdd kongdd closed this as completed Mar 24, 2022
@rafaqz
Copy link
Owner

rafaqz commented Mar 24, 2022

Yeah, because the type is actually Dim{:x}, so this works:

da[Dim{:x}(At(3))]

But using = is easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants