Skip to content
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

Weird printing of NamedAxisArray for dims > 3 #45

Open
grahamas opened this issue Sep 10, 2020 · 2 comments
Open

Weird printing of NamedAxisArray for dims > 3 #45

grahamas opened this issue Sep 10, 2020 · 2 comments

Comments

@grahamas
Copy link

grahamas commented Sep 10, 2020

[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]] = ...

@Tokazama
Copy link
Owner

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.

@grahamas
Copy link
Author

Ok! I'll keep an eye on master and try to test as it comes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants