Comments (5)
Sorry about that! Will try to find a minute to fix, got confused with trying to fix hash
but that can wait.
from axiskeys.jl.
I think I fixed this on master, sorry about the delay:
julia> ka = wrapdims(rand(Int8, 2,3), ["a", "b"], 100:10:120)
2-dimensional KeyedArray(...) with keys:
↓ 2-element Vector{String}
→ 3-element StepRange{Int64,...}
And data, 2×3 Array{Int8,2}:
(100) (110) (120)
("a") -109 74 73
("b") -70 97 25
julia> findmax(ka, dims=1)
(Int8[-70 97 73], CartesianIndex{2}[CartesianIndex(2, 1) CartesianIndex(2, 2) CartesianIndex(1, 3)])
Not tagged yet as there are all sorts of new ambiguity errors to sort out, thanks to other package updates.
from axiskeys.jl.
Sweet, the example is working. And like you said, when I test AxisKeys
it gives:
Test Summary: | Pass Error Broken Total
wrapdims with NamedDimsArray outside | 300 15 5 320
basics | 38 1 39
selectors | 19 19
reverse selectors | 7 7
names | 36 36
broadcasting | 27 27
bitarray | 6 6
namedtuple | 4 4
mutation | 6 6
dims | 20 20
sort | 12 12
map & collect | 17 17
cat | 5 15 1 21
matmul | 18 1 19
div | 3 3
copy etc | 6 6
equality | 10 10
indexing & lookup | 22 22
construction | 9 9
offset | 4 4
unique | 4 4
tables | 3 3
stack | 9 9
dates | 5 5
inverted | 4 4
fourier | 5 1 6
unitful fourier | 1 1 2
Test Summary: | Pass Error Broken Total
wrapdims with NamedDimsArray outside | 300 15 5 320
basics | 38 1 39
selectors | 19 19
reverse selectors | 7 7
names | 36 36
broadcasting | 27 27
bitarray | 6 6
namedtuple | 4 4
mutation | 6 6
dims | 20 20
sort | 12 12
map & collect | 17 17
cat | 5 15 1 21
matmul | 18 1 19
div | 3 3
copy etc | 6 6
equality | 10 10
indexing & lookup | 22 22
construction | 9 9
offset | 4 4
unique | 4 4
tables | 3 3
stack | 9 9
dates | 5 5
inverted | 4 4
fourier | 5 1 6
unitful fourier | 1 1 2
ERROR: LoadError: Some tests did not pass: 300 passed, 0 failed, 15 errored, 5 broken.
from axiskeys.jl.
Thanks for opening this, as commanded! I should probably disable that warning, as I have since found a few other things which might call it, but did not find findmax
.
(The terminology for all these packages is awful, I was hoping I could claim "keys" for these alternative things, hence the package name. But have since understood that Base uses both "keys" and "indices" according to logic I don't quite follow.)
from axiskeys.jl.
Haha yeah, I also get the same when I used vscodedisplay on axiskeys by clicking on it in the workspace viewer. And sometimes it gets really weird and just stops working.
from axiskeys.jl.
Related Issues (20)
- wrapdims(::DataFrame) produces incorrect results when not all key combinations are present HOT 4
- Feature request: aggregation function for wrapdims (and populate!)
- Ambiguity error: ProjectTo(::KeyedArray(...)))((::NoTangent)) HOT 1
- `vcat`/`hcat`/`cat` bug at edge case with one `KeyedArray` HOT 2
- `getindex(::KeyedVector, ::Colon, ::Colon)` is broken
- Document `setkey!` in the README
- Error trying to `show` KeyedArray with undef values
- `ProjectTo` is too permissive? HOT 3
- Broadcasting ambiguity
- Interpolation
- isequal violates transitive property HOT 1
- Error in `LinearAlgebra.copy_oftype` on addition of symmetric `KeyedArray` and `UniformScaling` HOT 2
- `eachslice` fails on v1.9-beta2 HOT 1
- Feature request: `empty!`
- unsupported keyword argument "time" when taking a gradient with Zygote HOT 1
- Wrong FFT results
- Maybe update `LazyStack` so that this warning vanishes in Julia 1.9 HOT 1
- Slicing with larger key vectors is slow HOT 2
- Support for NaNStatistics HOT 2
- vcat / hcat is broken on julia 1.10 HOT 5
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 axiskeys.jl.