Skip to content

Commit b03816c

Browse files
authored
Merge pull request #421 from int-brain-lab/TypoFix
Fix typo in camera extractor
2 parents 74497c5 + fbcb797 commit b03816c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ibllib/io/extractors/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def groom_pin_state(gpio, audio, ts, tolerance=2., display=False, take='first',
553553
downs = ts[high2low] - ts[high2low][0]
554554
offsets = audio_times[1::2] - audio_times[1]
555555
assigned = attribute_times(offsets, downs, tol=tolerance, take=take)
556-
unassigned = np.setdiff1d(np.arange(onsets.size), assigned[assigned > -1])
556+
unassigned = np.setdiff1d(np.arange(offsets.size), assigned[assigned > -1])
557557
if unassigned.size > 0:
558558
_logger.debug(f'{unassigned.size} audio TTL falls were not detected by the camera')
559559
# Check that all pin state downticks could be attributed to an offset TTL

release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Release Notes 2.5
2+
### Release Notes 2.5.2 2021-12-01
3+
- Fix typo in camera extractor
24
### Release Notes 2.5.1 2021-11-25
35
- SpikeSorting task overwrites old tar file on rerun
46
### Release Notes 2.5.0 2021-11-24

0 commit comments

Comments
 (0)