-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make interface display names more human readable #589
Conversation
We don't need a release of NeuroConv to make it work; NWB GUIDE packages the |
I'm not sure what the "(All Data)" part adds; what are you trying to say with that? |
I wouldn't do this on the TypeScript side; I'd modify the values returned by the NeuroConv query on the backend since that's a lot more customizable: https://github.com/NeurodataWithoutBorders/nwb-guide/blob/interface_display_name/pyflask/manageNeuroconv/manage_neuroconv.py#L165-L170 You can also set it up there to retrieve the 'display_name' if set as an attribute on the data interface classes Did you want to work on that @rly? |
…WithoutBorders/nwb-guide into interface_display_name
for more information, see https://pre-commit.ci
LGTM except for failing tests Fine with getting this through as is and adding more display names on NeuroConv over time |
Thanks for flagging that. Tests are passing now! |
@garrettmflynn Is this configured to use catalystneuro/neuroconv#734 (with or without suffix functionality, which can be in a follow-up)? Just want to make sure it's compatible with that so we don't unintentionally break something once that is merged |
…WithoutBorders/nwb-guide into interface_display_name
for more information, see https://pre-commit.ci
Just updated so that the Holding off on the use of |
Yeah I thought about just defering to the doc but the downside is our class docstrings have a lot of .rst and sphinx formatting for the autogeneration in the API section. So the
The NeuroConv PR currently has an attribute on every class called |
Agreed. I'm parsing the docstring, but it's a bit messy to do that.
Ah I accidentally referred to the Source Data page as the Data Formats page above. To reiterate, I've added the ability to search by The discussion on the related NeuroConv PR has been more related to the Source Data page, though, and filtering the file selector (as much as we can) on that page by adding the |
@garrettmflynn an e2e conflict on this one |
@garrettmflynn catalystneuro/neuroconv#734 is mostly ready to go now; shall we do a pass and see if this is ready for review? |
With that PR you can use a new function to get what you need
|
Updated! However, for using |
@garrettmflynn Still a merge conflict with the e2e tests |
Ah missed the merge conflict. Was just trying to nail the test failure down |
for more information, see https://pre-commit.ci
@CodyCBakerPhD All of these tests are now going to fail because of the reliance on the NeuroConv branch. Previously, I was just using fallbacks if things didn't exist—but that new function can't be handled the same way. How do you want to mediate that in the meantime? |
Either update the environment files point to the relevant branch or wait until it gets merged (and only use test this branch locally using the right upstream) - only 2 options for us The former would take more effort since we'd have to change it back after the upstream merge |
I'm fine with the latter if you're fine merging with tests failing 😅 |
Oh no, not what I meant lol 😆 this should either not be merged until upstream is, or pin to NeuroConv dev branch it's compatible with and immediately update the pins after that merge |
Ah gotcha lol |
for more information, see https://pre-commit.ci
Yep, this looks great now Just need a better search functionality in a follow-up to find things like "phy" or "sorted" (as in, "spike sorted" currently only finds "sorting") |
Temporary solution for #588 until next NeuroConv release with the display names as class variables for each interface. cc @bendichter
We don't need to merge this if the NeuroConv release schedule is relatively fast.
Result:
After adding an interface, the key is still the name of the interface:
I wasn't sure what the downstream effects of changing that are so I left that as is.