Skip to content

Commit cc79259

Browse files
authored
Merge pull request #752 from int-brain-lab/raw_data_docs_fix
Correct typo in `load_raw_ephys_data`
2 parents 564d414 + fbc7912 commit cc79259

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/loading_data/loading_raw_ephys_data.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@
107107
"print(f'raw AP band sample for event at time {t_event}: {s_event}')\n",
108108
"\n",
109109
"# get the AP data surrounding samples\n",
110-
"window_secs_ap = [-0.05, 0.05] # we'll look at 100ms before the event and 200ms after the event for AP\n",
110+
"window_secs_ap = [-0.05, 0.05] # we'll look at 50ms before and after the event for AP\n",
111111
"first, last = (int(window_secs_ap[0] * sr_ap.fs) + s_event, int(window_secs_ap[1] * sr_ap.fs + s_event))\n",
112112
"raw_ap = sr_ap[first:last, :-sr_ap.nsync].T\n",
113113
"\n",
114114
"# get the LF data surrounding samples\n",
115-
"window_secs_ap = [-0.750, 0.750] # we'll look at 100ms before the event and 200ms after the event\n",
116-
"sample_lf = s_event // 12 # NB: for neuropixel probes this is always 12\n",
115+
"window_secs_ap = [-0.750, 0.750] # we'll look at 750ms before and after the event because LF varies more slowly in time\n",
116+
"sample_lf = s_event // 12 # NB: for neuropixel probes this is always 12 because AP is sampled at 12x the frequency of LF\n",
117117
"first, last = (int(window_secs_ap[0] * sr_lf.fs) + sample_lf, int(window_secs_ap[1] * sr_lf.fs + sample_lf))\n",
118118
"raw_lf = sr_lf[first:last, :-sr_lf.nsync].T"
119119
]

0 commit comments

Comments
 (0)