Comments (3)
Thank you! Yes, that's just what I was looking for. I'd initially gotten confused by
ERROR: UndefVarError: `AutoLookup` not defined
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!
from dimensionaldata.jl.
You can! But it goes in the lookup, as Dimension
is just a wrapper.
Theres even a helper to do it without constructing the lookup:
x =X(10:20; metadata=Dict())
When you put x in a DimArray format
will put the metadata dict in the lookup for you.
For FFT you may also want to extend Lookup
if you need anything more than metadata, like custom dispatch. You can extend AbstractSampled
to keep most of the selectors etc working as normal.
from dimensionaldata.jl.
Probably should need to import that!
Maybe a bug in the macro.
from dimensionaldata.jl.
Related Issues (20)
- Dimension labels do not plot in Makie on 0.27.0
- Use DataAPI.jl metadata function HOT 1
- Optimise selectors like `Near` and `Contains` on `Regular` lookups
- Copy of Dictionary of DimArrays creates views HOT 2
- Plot of one dimensional DimArray ignores the lookup values of the dimensions HOT 2
- Feature Request: pass fill value (single element) to `DimArray` HOT 8
- Support plot mutation with global Axis HOT 10
- Towards a nicer Makie recipe HOT 10
- Would it be useful to have Not() as a selector? HOT 3
- Makie extension throws StackOverflowError when dimensions have Unitful units HOT 4
- Dimensions of Observable(dd) are ignored in Makie 0.21 HOT 9
- Displaying one-dimensional `DimArray` does not quite work in Pluto HOT 8
- Performance of `broadcast_dims` on `DimStack` vs `DimArray` HOT 1
- Remove if VERSION checks HOT 1
- Plotting deprecations in tests
- Reduce number of warnings in tests HOT 1
- How can I create a 2D array using broadcasting? HOT 1
- MethodError: no method matching `copy(::X{LinRange{Float64, Int64}})`
- Selection of multiple surrounding pixels around a position HOT 3
- Add CodeCov upload token to fix codecov HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dimensionaldata.jl.