Comments (4)
Oh, yeah... weird, I can reproduce.
from dimensionaldata.jl.
Its not forward ordered tho, so searchsorted wont work.
Probably set should error
from dimensionaldata.jl.
I expected to fully replace the Dimension so that it has an order that fits to the values. If set errors how would you change a dimension?
from dimensionaldata.jl.
Maybe we need to let you set both in the same call so there is never an incorrect state.
The problem with auto-detecting the order in set
is it would make every change to the lookup values type-unstable. Normally set
is a compile-time op or close to it so you can use it freely in hot paths. It would be unfortunate to lose that. format
does these things but its never expected to be type stable and only happens in user called constructors.
But I've been thinking we may need to split set
into unsafe_set
and set
. unsafe_set
wouldn't check anything that would lead to type instability, and would be safe for use in hot paths, while set
would be safe for users to use in the REPL and would avoid problems like this one.
from dimensionaldata.jl.
Related Issues (20)
- Would it be useful to have Not() as a selector? HOT 4
- Makie extension throws StackOverflowError when dimensions have Unitful units HOT 4
- Dimensions of Observable(dd) are ignored in Makie 0.21 HOT 10
- 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 4
- Add CodeCov upload token to fix codecov HOT 4
- friction in dimension-specific `mean` of a `groupby` HOT 4
- FR: Make `broadcast_dims` work with `DimArray`s and `Dimension`s HOT 3
- `mapslices` on `DimStack` HOT 3
- add `name` etc keywords to `DimArray` `similar` HOT 1
- Support `replace!` for `DimStack`s HOT 3
- typos HOT 6
- Explain difference of Interval and Range for Indexing HOT 1
- Weighted mean from `StatsBase` does not work on DimArray HOT 6
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.