Skip to content

Commit

Permalink
Check for existence of source video when creating from pkg.slp (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
talmo authored Jan 21, 2025
1 parent 9ec4aa2 commit f80c030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sleap_io/io/slp.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def make_video(
dataset = backend_metadata["dataset"]
if dataset.endswith("/video"):
dataset = dataset[:-6]
if dataset in f:
if dataset in f and "source_video" in f[dataset]:
source_video_json = json.loads(
f[f"{dataset}/source_video"].attrs["json"]
)
Expand Down

0 comments on commit f80c030

Please sign in to comment.