Skip to content

Commit

Permalink
Update LFP notebook (#764)
Browse files Browse the repository at this point in the history
* update LFP notebook to use target_sampling_rate

* remove autoreload import
  • Loading branch information
samuelbray32 authored Jan 12, 2024
1 parent e759bce commit 07ff56c
Show file tree
Hide file tree
Showing 2 changed files with 649 additions and 195 deletions.
835 changes: 644 additions & 191 deletions notebooks/30_LFP.ipynb

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions notebooks/py_scripts/30_LFP.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.16.0
# jupytext_version: 1.15.2
# kernelspec:
# display_name: Python 3.10.5 64-bit
# language: python
Expand Down Expand Up @@ -175,7 +175,8 @@
{
"target_interval_list_name": interval_list_name,
"filter_name": "LFP 0-400 Hz",
"filter_sampling_rate": 30_000,
"filter_sampling_rate": 30_000, # sampling rate of the data (Hz)
"target_sampling_rate": 1_000, # smpling rate of the lfp output (Hz)
}
)

Expand Down Expand Up @@ -271,7 +272,7 @@
lfp_band_key = (
lfp_band.LFPBandSelection
& {
"merge_id": lfp_key["merge_id"],
"lfp_merge_id": lfp_key["merge_id"],
"filter_name": filter_name,
"lfp_band_sampling_rate": lfp_band_sampling_rate,
}
Expand All @@ -284,7 +285,7 @@
lfp_band.LFPBandSelection() & lfp_band_key

lfp_band.LFPBandV1().populate(lfp_band.LFPBandSelection() & lfp_band_key)
lfp_band.LFPBandV1()
lfp_band.LFPBandV1() & lfp_band_key

# ## Plotting
#
Expand Down

0 comments on commit 07ff56c

Please sign in to comment.