Skip to content

Commit

Permalink
add back fix for short probes
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Dec 8, 2023
1 parent f105fcb commit e06ba40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atlaselectrophysiology/plot_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ def gain2level(gain):
h = neuropixel.split_trace_header(h, shank=int(sr.meta.get('NP2.4_shank')))
else:
h = neuropixel.trace_header(sr.major_version, nshank=np.unique(th['shank']).size)
idx = np.isin(h['ind'], th['ind'])
for k in h.keys():
h[k] = h[k][idx]

s0 = t * sr.fs
tsel = slice(int(s0), int(s0) + int(1 * sr.fs))
Expand Down

0 comments on commit e06ba40

Please sign in to comment.