-
Notifications
You must be signed in to change notification settings - Fork 12
Integrate Movie context manager into DataInterface #372
Conversation
TODO:
|
@CodyCBakerPhD you had added this function to add a custom processing module to hold the |
@Saksham20 If you can write a test to show how nwb-conversion-tools/tests/test_internals/test_interfaces.py Lines 178 to 184 in 335c71f
|
@Saksham20 Mark as ready for review once tests are passing; I'm also kind of curious what is so severe here that we get segmentation faults? |
nwb_conversion_tools/datainterfaces/behavior/movie/moviedatainterface.py
Outdated
Show resolved
Hide resolved
…d_context_class_movie
nwb_conversion_tools/datainterfaces/behavior/movie/moviedatainterface.py
Show resolved
Hide resolved
@Saksham20 Can you point me to the logic in the code responsible for handling Also if you can add some tests that ensure such a method works correctly. |
I missed adding the logic to change the |
nwb_conversion_tools/datainterfaces/behavior/movie/moviedatainterface.py
Outdated
Show resolved
Hide resolved
nwb_conversion_tools/datainterfaces/behavior/movie/moviedatainterface.py
Outdated
Show resolved
Hide resolved
nwb_conversion_tools/datainterfaces/behavior/movie/moviedatainterface.py
Outdated
Show resolved
Hide resolved
nwb_conversion_tools/datainterfaces/behavior/movie/moviedatainterface.py
Outdated
Show resolved
Hide resolved
Related - an old issue from the first version of this interface: NeurodataWithoutBorders/pynwb#1318 Can you look into it and see if it can be closed? Or if it needs more action propagated upward? Can we set multiple |
Yeah thanks for bringing that up. I have though of that too, I've recreated the issue with a simpler code snippet NeurodataWithoutBorders/pynwb#1433 |
@Saksham20 Just need a test that explicitly verifies the data size using Then should be good to go. |
Oh yeah, missed that. Done bd67a7b |
Codecov Report
@@ Coverage Diff @@
## main #372 +/- ##
==========================================
+ Coverage 87.56% 87.60% +0.03%
==========================================
Files 42 42
Lines 2381 2371 -10
==========================================
- Hits 2085 2077 -8
+ Misses 296 294 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Motivation
Adding a video capture context manager with various properties. Based on dicussion here
This PR breaks #364 as suggested by @CodyCBakerPhD here
How to test the behavior?
Have setup tests for it in a separate file: https://github.com/catalystneuro/nwb-conversion-tools/blob/952b7f4a530bd8b62ab7185569060d8d1878087d/tests/test_internals/test_movie_interface.py
Once his is merged, I can add another PR for the
MovieDataChunkIterator
that was implemented at #265Checklist
fix #XXX
whereXXX
is the issue number?