-
Notifications
You must be signed in to change notification settings - Fork 38
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
Dimension metadata #660
Comments
You can! But it goes in the lookup, as Theres even a helper to do it without constructing the lookup: x =X(10:20; metadata=Dict()) When you put x in a DimArray For FFT you may also want to extend |
Thank you! Yes, that's just what I was looking for. I'd initially gotten confused by
when trying this out in my own Dimensions. That's my own error: I believe it's because the macro evaluates in the calling context, and I hadn't imported AutoLookup. using DimensionalData: @dim, XDim, AutoLookup
@dim X2 XDim
x = X2(10:20; metadata=Dict()) Thank you again for writing such a useful package! |
Probably should need to import that! Maybe a bug in the macro. |
I couldn't figure out how to attach metadata to a Dimension, is this possible? I can wrap a MetaArrays.jl or similar, but it seems like a lookup might already have this functionality?
I love your package! I use it to analyze astrophysical data (perhaps similar to ecological modeling). I spent some time today writing an extension with hackish FFT compatibility, as I'd like to preserve a phase in the fourier conjugate dimension so I can reconstruct the spatial frequencies when I inverse FFT.
The text was updated successfully, but these errors were encountered: