Skip to content
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

fix video len bug #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

fix video len bug #23

wants to merge 4 commits into from

Conversation

vigji
Copy link

@vigji vigji commented Jun 17, 2024

Fix issue raised in #22.

I've started the PR to make sure I'm not contributing code in the wrong place. I'm fixing some other issues arising as the result of relying on this library from neuroconv (eg, also AttributeError: 'cv2.VideoCapture' object has no attribute 'fps', line 85)

@vigji vigji marked this pull request as draft June 17, 2024 10:36
@vigji vigji marked this pull request as ready for review June 17, 2024 10:47
dlc2nwb/utils.py Outdated
@@ -195,6 +198,7 @@ def _write_pes_to_nwbfile(
paf_graph,
timestamps,
exclude_nans,
**optional_kwargs,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**optional_kwargs,
**optional_container_kwargs,

or optional_pose_estimation_kwargs to distinguish these from ones you would pass to individual series

Also might just be better to make it fully explicit with pose_estimation_container_kwargs: Optional[dict] = None

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants