-
Notifications
You must be signed in to change notification settings - Fork 23
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
add name parameter to the DeepLabCutInterface
#917
Conversation
src/neuroconv/datainterfaces/behavior/deeplabcut/deeplabcutdatainterface.py
Outdated
Show resolved
Hide resolved
…ainterface.py Co-authored-by: Cody Baker <[email protected]>
Reasonable suggestion! Let me know if there is anything else I should do |
Last thing to do would be to add a new test case that uses this new feature after the current test case: https://github.com/catalystneuro/neuroconv/blob/main/tests/test_on_data/test_behavior_interfaces.py#L317 Which would also require setting developer dependencies (in the form of |
Hope I did this correctly
I changed this in |
Test looks good! Will need to wait a bit to merge upstream before getting this through Thanks for all the work |
Perfect, let me know if there's anything more I need to take care of, and thank you :) |
After having tested this in parallel with the |
The usual excuse for that is that various decisions were made for the sake of maintaining back-compatibility; the video interfaces is one of our oldest and most used interfaces after all (since it is so generic) - so if we were to change something fundamental about it, it might cause problems for a number of conversion pipelines That said, we do try to standardize these things with slow deprecation cycles every now and again. Enhancing the video interfaces is something we've wanted to do for a while now but no one has had the time to implement all improvements |
Perfectly reasonable! So the strategy used here for the |
Yes, something like a container name seems to me something more relevant as a conversion option (this is also the case in ophys/ecephys modules here) Just waiting on the upstream repo to respond to PR and we can get this through. I'll inject myself there soon otherwise just to get this done |
src/neuroconv/datainterfaces/behavior/deeplabcut/deeplabcutdatainterface.py
Outdated
Show resolved
Hide resolved
src/neuroconv/datainterfaces/behavior/deeplabcut/deeplabcutdatainterface.py
Outdated
Show resolved
Hide resolved
src/neuroconv/datainterfaces/behavior/deeplabcut/requirements.txt
Outdated
Show resolved
Hide resolved
@vigji Sorry this took so long; we're just taking matters into our own hands at this point There should be a box somewhere on this PR about giving reviewers permission to push code or something like that - if you check that box I'd be happy to make the required changes to get this through |
Co-authored-by: Cody Baker <[email protected]>
…ainterface.py Co-authored-by: Cody Baker <[email protected]>
…ainterface.py Co-authored-by: Cody Baker <[email protected]>
Co-authored-by: Cody Baker <[email protected]>
Great! thanks! Could not find such button but I should have applied all changes. |
@vigji There is a remaining merge conflict which must be resolved via the CLI (be sure to try to merge |
Thanks again @vigji ! |
This PR should fix the issue described in #915.
It consists in the small addition of a name argument to the
DeepLabCutInterface
that allows users to specify names different from thenwb-pose
defaultPoseEstimation
(https://github.com/rly/ndx-pose/blob/a847ad4be75e60ef9e413b8cbfc99c616fc9fd05/spec/ndx-pose.extensions.yaml#L71).To work, the call to
dlc2nwb. _write_pes_to_nwbfile()
should accept additional arguments, as described in DeepLabCut/DLC2NWB#24. At the moment, and untildlc2nwb
people give feedback on that issue, this functionality would require a different fork ofdlc2nwb
: https://github.com/vigji/DLC2NWB.