-
Notifications
You must be signed in to change notification settings - Fork 100
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
Separate the video name and its filepath columns in VideoTablesModel
#2052
Merged
Merged
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ac6da50
add option to show video names with filepath
7174Andy 788e8bc
add doc
7174Andy a92fc2d
new feature added successfully
7174Andy 2ea89bb
delete unnecessary code
7174Andy e03be7e
remove attributes from video object
7174Andy 8cac64c
Update dataviews.py
7174Andy 1fa5f02
remove all properties
7174Andy 8e6b947
delete toggle option
7174Andy 22dd69e
remove video show
7174Andy 8db81a9
fix the order of the columns
7174Andy 7529acc
remove options
7174Andy 9d747cb
Update sleap/gui/dataviews.py
7174Andy d38c0c4
Update sleap/gui/dataviews.py
7174Andy 946082d
use pathlib instead of substrings
7174Andy 7044c21
Merge branch 'develop' into andrew/break-out-filenames-in-video-table
7174Andy d158633
Update dataviews.py
7174Andy 69b6273
Use Path instead of pathlib.Path
roomrys 5b1b7e9
Use item.filename instead of getattr
roomrys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix critical issues in the
item_to_data
method implementation.The current implementation has several issues:
name
andparent
values are not usedsplitted
variable is usedApply this diff to fix the issues:
Changes made:
getattr
callsstr(Path().parent)
📝 Committable suggestion
🧰 Tools
🪛 Ruff (0.8.2)
398-398: Undefined name
Video
(F821)
402-402: Do not call
getattr
with a constant attribute value. It is not any safer than normal property access.Replace
getattr
with attribute access(B009)
403-403: Local variable
name
is assigned to but never usedRemove assignment to unused variable
name
(F841)
403-403: Undefined name
Path
(F821)
405-405: Do not call
getattr
with a constant attribute value. It is not any safer than normal property access.Replace
getattr
with attribute access(B009)
406-406: Local variable
parent
is assigned to but never usedRemove assignment to unused variable
parent
(F841)
406-406: Undefined name
Path
(F821)
407-407: Undefined name
splitted
(F821)