Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
skip = .git,*.pdf,*.svg
ignore-regex = ^\s*"image/\S+": ".*
ignore-words-list = adn
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"source": [
"The __EcephysProjectCache__ object of the AllenSDK delivers the data to you as ready-to-analyze Python objects. It automatically keeps track of which files are stored locally, and will download additional files as needed.\n",
"\n",
"The next bit involves dowloading the data onto your local machine. This section is adapted from <a href=\"https://allensdk.readthedocs.io/en/2.16.0/_static/examples/nb/ecephys_data_access.html\" target=\"_blank\">here</a>, where you can find a more detailed account of how to use data from the Allen Institute.\n",
"The next bit involves downloading the data onto your local machine. This section is adapted from <a href=\"https://allensdk.readthedocs.io/en/2.16.0/_static/examples/nb/ecephys_data_access.html\" target=\"_blank\">here</a>, where you can find a more detailed account of how to use data from the Allen Institute.\n",
"\n",
"Before downloading the data, you must decide where the manifest.json file lives. This file serves as the map that guides the EcephysProjectCache object to the file locations.\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion pynacollada/eeg_processing/Tutorial_ripple_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"id": "82b21ea7",
"metadata": {},
"source": [
"Second step is to look at the enveloppe of the filtered signal."
"Second step is to look at the envelope of the filtered signal."
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions pynacollada/eeg_processing/eeg_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def bandpass_filter(data, lowcut, highcut, fs, order=4):
time_units='s')

else:
raise RuntimeError("Unknow format. Should be Tsd/TsdFrame")
raise RuntimeError("Unknown format. Should be Tsd/TsdFrame")

def detect_oscillatory_events(lfp, epoch, freq_band, thres_band, duration_band, min_inter_duration, wsize=51):
"""
Expand All @@ -85,7 +85,7 @@ def detect_oscillatory_events(lfp, epoch, freq_band, thres_band, duration_band,
min_inter_duration : float
The minimum duration between two events otherwise they are merged (in seconds)
wsize : int, optional
The size of the window for digitial filtering
The size of the window for digital filtering

Returns
-------
Expand Down Expand Up @@ -145,7 +145,7 @@ def detect_oscillatory_events(lfp, epoch, freq_band, thres_band, duration_band,

# def getPeaksandTroughs(lfp, min_points):
# """
# At 250Hz (1250/5), 2 troughs cannont be closer than 20 (min_points) points (if theta reaches 12Hz);
# At 250Hz (1250/5), 2 troughs cannot be closer than 20 (min_points) points (if theta reaches 12Hz);
# """
# import scipy.signal
# if isinstance(lfp, nap.time_series.Tsd):
Expand Down
2 changes: 1 addition & 1 deletion pynacollada/neural_tuning/neural_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def centerTuningCurves(tcurve):
# copied to neural_tuning
def offsetTuningCurves(tcurve, diffs):
"""
offseting tuning curves synced by diff
offsetting tuning curves synced by diff
"""
new_tcurve = []
for p in tcurve.columns:
Expand Down
Empty file modified pynacollada/position_tracking/1819-211231_1.h5
100755 → 100644
Empty file.