Skip to content

Commit

Permalink
Update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Feb 9, 2024
1 parent da51f35 commit edd0cd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions notebooks/51_MUA_Detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,9 @@
"import numpy as np\n",
"\n",
"fig, axes = plt.subplots(2, 1, sharex=True, figsize=(15, 4))\n",
"time, multiunit_firing_rate = (MuaEventsV1).get_firing_rate(mua_key)\n",
"speed = MuaEventsV1.get_speed(mua_key).to_numpy()\n",
"time = speed.index.to_numpy()\n",
"multiunit_firing_rate = MuaEventsV1.get_firing_rate(mua_key, time)\n",
"\n",
"time_slice = slice(\n",
" np.searchsorted(time, mua_times.loc[10].start_time) - 1_000,\n",
Expand Down Expand Up @@ -947,7 +948,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion notebooks/py_scripts/43_Decoding_SortedSpikes.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.1
# jupytext_version: 1.16.0
# kernelspec:
# display_name: spyglass
# language: python
Expand Down
5 changes: 3 additions & 2 deletions notebooks/py_scripts/51_MUA_Detection.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.1
# jupytext_version: 1.16.0
# kernelspec:
# display_name: spyglass
# language: python
Expand Down Expand Up @@ -75,8 +75,9 @@
import numpy as np

fig, axes = plt.subplots(2, 1, sharex=True, figsize=(15, 4))
time, multiunit_firing_rate = (MuaEventsV1).get_firing_rate(mua_key)
speed = MuaEventsV1.get_speed(mua_key).to_numpy()
time = speed.index.to_numpy()
multiunit_firing_rate = MuaEventsV1.get_firing_rate(mua_key, time)

time_slice = slice(
np.searchsorted(time, mua_times.loc[10].start_time) - 1_000,
Expand Down

0 comments on commit edd0cd1

Please sign in to comment.