Skip to content

Commit a58560a

Browse files
committed
Merge branch 'hotfix/2.0.4'
2 parents 0952802 + dc6a9c4 commit a58560a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ibllib/io/extractors/ephys_fpga.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ def _assign_events_audio(audio_t, audio_polarities, return_indices=False):
242242
# make sure that there are no 2 consecutive fall or consecutive rise events
243243
assert(np.all(np.abs(np.diff(audio_polarities)) == 2))
244244
# take only even time differences: ie. from rising to falling fronts
245-
dt = np.diff(audio_t)[::2]
245+
i0 = 0 if audio_polarities[0] == 1 else 1
246+
dt = np.diff(audio_t)[i0::2]
246247
# detect ready tone by length below 110 ms
247248
i_ready_tone_in = np.r_[np.where(dt <= 0.11)[0] * 2]
248249
t_ready_tone_in = audio_t[i_ready_tone_in]

release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- passive extraction robust to frame2ttl flickers
66
### Release Notes 2.0.3 2021-09-03
77
- pykilosort bugfix after low yield results
8+
### Release Notes 2.0.4 2021-09-10
9+
- ephys trials extraction when audio FPGA starts on up state
810

911
### Release Notes 2.0.0 2021-08-04
1012
- ONE2 released on the master branch

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
setup(
2626
name='ibllib',
27-
version='2.0.3',
27+
version='2.0.4',
2828
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
2929
description='IBL libraries',
3030
license="MIT",

0 commit comments

Comments
 (0)