Skip to content

Commit 06f4e8b

Browse files
committed
Updates after review
1 parent eddcadb commit 06f4e8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

element_moseq/moseq_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ def make(self, key):
8484
valid_entries = [
8585
(vid, p)
8686
for vid, p in zip(video_ids, pose_estimation_paths)
87-
if p is not None
87+
if p and p.strip() # Check for non-empty strings
8888
]
8989
if not valid_entries:
9090
raise ValueError(
91-
"No valid pose_estimation_paths found - all entries are NULL"
91+
"No valid pose_estimation_paths found - all entries are empty"
9292
)
9393

9494
posefile2vid = {Path(p).stem: vid for vid, p in valid_entries}

element_moseq/moseq_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class VideoFile(dj.Part):
164164
video_id : int # Unique ID for each video corresponding to each keypoint data file, relative to root data directory
165165
---
166166
video_path : varchar(1000) # Filepath of each video (e.g., `.mp4`) from which the keypoints are derived, relative to root data directory
167-
pose_estimation_path=null : varchar(1000) # Filepath of each pose estimation file (e.g., `.h5`) that contains the keypoints, relative to root data directory
167+
pose_estimation_path='' : varchar(1000) # Filepath of each pose estimation file (e.g., `.h5`) that contains the keypoints, relative to root data directory
168168
"""
169169

170170

0 commit comments

Comments
 (0)