Skip to content

Commit 95d8de3

Browse files
authored
Fixed VideoFile typo (#1427)
* fixed videoFile typo * Updated changelog
1 parent 594bc98 commit 95d8de3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import all foreign key references.
2525
- Update pynwb pin to >=2.5.0 for `TimeSeries.get_timestamps` #1385
2626
- Fix error from unlinked object in `AnalysisNwbfile.create` #1396
2727
- Sort `UserEnvironment` dict objects by key for consistency #1380
28+
- Fix typo in VideoFile.make #1427
2829

2930
### Infrastructure
3031

src/spyglass/common/common_behav.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def make(self, key, verbose=True, skip_duplicates=False):
420420

421421
timestamps = video_obj.timestamps
422422
these_times = valid_times.contains(timestamps)
423-
if not len(these_times > 0.9 * len(timestamps)):
423+
if not len(these_times) > (0.9 * len(timestamps)):
424424
continue
425425

426426
nwb_cam_device = video_obj.device.name

0 commit comments

Comments
 (0)