Skip to content

Commit

Permalink
feat(LabeledVideo): add labeled_video_file attribute as filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Aug 12, 2024
1 parent 845528c commit 8c5a5e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions element_deeplabcut/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ class File(dj.Part):
-> VideoRecording.File
---
labeled_video_path: varchar(255) # relative path to labeled video
labeled_video_file=null: filepath@dlc-processed
"""

@property
Expand Down Expand Up @@ -1008,6 +1009,7 @@ def make(self, key):
"labeled_video_path": labeled_video_path.relative_to(
get_dlc_processed_data_dir()
).as_posix(),
"labeled_video_file": labeled_video_path.as_posix(),
}
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"tests": ["pytest", "pytest-cov", "shutils"],
"dlc-pytorch": [
"deeplabcut @ git+https://github.com/DeepLabCut/DeepLabCut.git@pytorch_dlc"
]
],
},
)

0 comments on commit 8c5a5e9

Please sign in to comment.