AxisIndices.jl
AxisIndices.jl copied to clipboard
Weird printing of NamedAxisArray for dims > 3
[caveat: I'm on a dev'd AxisIndices v0.6.3, where I made a change to fix the logical indexing bug]
When you print A = NamedAxisArray{(:a, :b, :c, :d)}(rand(5,4,3,2), 1:5, 1:4, 1:3, 1:2)
you get entries of the form:
[a, b, a[3], d[2]] =
1 2 3 4
1 0.6183962849056126 0.7904900155652856 0.1419977075208656 0.6821338082218344
2 0.969833975181362 0.9916471502777551 0.49828209180286986 0.4433907771444834
3 0.01868671289416035 0.8442012957476892 0.28213154258544004 0.1878913660614996
4 0.04890544295513477 0.521414771043802 0.08127010154916281 0.8835619953878235
5 0.3853117704046576 0.9063712407958395 0.5181467623229459 0.24943344387181
where I would expect entries of the form [a, b, c[3], d[2]] = ...
Im pretty sure I know what's going on here. I've actually got a pretty big PR I'm working on that should fix this and several other bugs. I'm trying to move more stuff to ArrayInterface so that we have more generic support throughout the Julia ecosystem for some unique traits this package needs. I'll try to start moving stuff to master as it looks usable, but it will probably be a week or so before it's ready for another official release.
Ok! I'll keep an eye on master and try to test as it comes.