Skip to content

Conversation

@n-poulsen
Copy link
Contributor

Manual frame extraction fails when videos are not copied to the project (as mentionned in issue #2502), as the VideoSelectionWidget resolves symlinks automatically. Thus napari-deeplabcut gets a path to the video in its true location instead of the symlink, and does not extract the frames to the correct folder.

This PR adds a method to check that the video is in the project folder, and gets the path to the symlink again if the path was resolved. It raises an error if the video cannot be found in the project's videos/ (e.g., if the user selected a video for manual frame extraction which was not added to the project).

@n-poulsen n-poulsen requested a review from jeylau February 20, 2024 18:04
@n-poulsen n-poulsen added GUI issues relating to GUI bug fix! fix for a real buggy one... labels Feb 20, 2024
@n-poulsen n-poulsen requested a review from MMathisLab February 22, 2024 14:53
@MMathisLab MMathisLab merged commit 87d4e4f into main Mar 1, 2024
@MMathisLab MMathisLab deleted the niels/bug_fix_manual_frame_extraction branch March 10, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix! fix for a real buggy one... GUI issues relating to GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants