You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One issue that I have on the user interface side is that it is quite difficult to sometimes parse the output of a nested NamedAxisArray. To illustrate what I mean, let me show you. I have the following code which creates a nested NamedAxisArray:
Furthermore, I am not sure what happens but it recursively descends and displays the values of the deepest nested NamedAxisArray with no explanation nor information about that nested NamedAxisArray's fields.
Highest level
At the highest level is when things become the most obfuscatory:
I wonder if AbstractTrees.jl would help with this... Seems promising!
I think this is probably a better direction to go as a graph/tree could solve a lot of this. I've contemplated doing more with this through AxisGraphs.jl, but I'm still incubating ideas on the specifics of how to approach this (I have a fair amount of scratch code thinking through this, but it's not organized or tested yet).
Did you have any specific ideas for what you'd like out of using something like AbstractTrees.jl in terms of interface or is printing your main concern?
Hi @Tokazama - love this package for the work going on in NeuriViz!
One issue that I have on the user interface side is that it is quite difficult to sometimes parse the output of a nested NamedAxisArray. To illustrate what I mean, let me show you. I have the following code which creates a nested NamedAxisArray:
This is desirable as the syntax becomes as easy as
subject_data[subject = 1][session = 1][information = :electrodes]
to access information.Deepest Nested NamedAxisArray
Starting from the furthest nested NamedAxisArray, it is not terribly hard to read:
There are a few things that would be nice to have displayed better. First:
could possibly be better displayed as:
Which I think looks clearer and easier to read. Second, rather than having the axis be displayed, it would be nice to have something nice like:
With optional verbosity levels (i.e. show me directly the values stored in these axes versus tell me the types and dimensions only).
Third, when printing DataFrames, It might be nice to have a new line after the end of printing each data frame for cleanness.
First Nested NamedAxisArray
Moving up one level in the nesting, things start to get very messy:
The following seems quite messy in my opinion:
It would be nice if it could be more like:
Furthermore, I am not sure what happens but it recursively descends and displays the values of the deepest nested NamedAxisArray with no explanation nor information about that nested NamedAxisArray's fields.
Highest level
At the highest level is when things become the most obfuscatory:
Conclusion
In short, it would be nice to somehow adjust the verbosity of the output and maybe instead show something like this for the nested NamedAxisArray:
Of course, it's not perfect, but I like it a bit better than what is currently displayed.
What do you think @Tokazama ? I feel like this would actually lead to better tracebacks and increase the ease of debugging issues.
The text was updated successfully, but these errors were encountered: