Skip to content

Commit

Permalink
Merge pull request #106 from int-brain-lab/develop
Browse files Browse the repository at this point in the history
add back fix for short probes
  • Loading branch information
mayofaulkner authored Dec 8, 2023
2 parents 679d9c5 + e06ba40 commit 74e6fd5
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 74e6fd5

Please sign in to comment.