Skip to content

Commit

Permalink
include all relevant restrictions on video file
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Feb 14, 2024
1 parent b5bea11 commit b857d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spyglass/position/v1/dlc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def get_video_path(key):
"""
import pynwb

vf_key = {"nwb_file_name": key["nwb_file_name"], "epoch": key["epoch"]}
valid_fields = VideoFile.fetch().dtype.fields.keys()
vf_key = {k: val for k, val in key.items() if k in valid_fields}
VideoFile()._no_transaction_make(vf_key, verbose=False)
video_query = VideoFile & vf_key

Expand Down

0 comments on commit b857d08

Please sign in to comment.