NeurodataWithoutBorders / nwbwidgets

Explore the hierarchical structure of NWB 2.0 files and visualize data with Jupyter widgets.
https://nwb-widgets.readthedocs.io/en/latest/
Other
47 stars 22 forks source link

[Feature]: Alphabetize by subject ID / filename in Panel file listing #298

Closed rly closed 1 year ago

rly commented 1 year ago

What would you like to see added to NWB Widgets?

When I want to explore a specific file on DANDI, sometimes I will open up dandihub, launch the Panel, select the dandiset, and select the file. This is difficult because the file listing is not in any understandable order:

Screenshot 2023-06-26 at 4 43 35 PM

It would be nice to have the listed files be in order of subject ID and then file name, just like the dandi website.

I could write code / adapt existing streaming python code to open the file, but sometimes it is just nicer to use a UI.

(And as discussed with @bendichter earlier, this issue would also be solved by being able to select a file in the dandi files explorer and clicking a button "Open in NWB Widgets", but that is a larger issue)

Do you have any interest in helping implement the feature?

No.

Code of Conduct

bendichter commented 1 year ago

@luiztauffer is this perhaps an artifact of parallelization? Could you apply a sort in here?

luiztauffer commented 1 year ago

@bendichter you got that right, this should be simple to resolve, I'll make a commit for that

luiztauffer commented 1 year ago

oh no, actually we have two separate problems:

I believe both are solved with a simple sorting. I'll also see if I can improve a bit the files list, perhaps something like:

subject_id - file_name
subject_id - file_name
subject_id - file_name
...