Skip to content

Commit

Permalink
Merge pull request #40 from int-brain-lab/fix_install
Browse files Browse the repository at this point in the history
updated packaging fixes for python 3.11
  • Loading branch information
grg2rsr authored Aug 30, 2024
2 parents 79685fa + b336a36 commit 1bf1d36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
name: build (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.10"]
python-version: ["3.9", "3.10"]
steps:
- name: Checkout ibl-neuropixel repo
uses: actions/checkout@v3
Expand All @@ -27,7 +28,7 @@ jobs:

- name: flake8
run: |
pip install flake8 --quiet
pip install flake8>=7 --quiet
cd ibl-neuropixel
python -m flake8
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ iblutil >= 1.7.0
joblib
matplotlib
mtscomp
numpy
numpy >= 1.21.6
one-api
pandas
scipy
scipy >= 1.11
pyfftw
6 changes: 3 additions & 3 deletions src/ibldsp/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ def show_channels_labels(raw, fs, channel_labels, xfeats):
butt = scipy.signal.sosfiltfilt(sos_hp, raw)
fig, ax = plt.subplots(1, 5, figsize=(18, 6), gridspec_kw={'width_ratios': [1, 1, 1, 8, .2]})
ax[0].plot(xfeats['xcor_hf'], np.arange(nc))
ax[0].plot(xfeats['xcor_hf'][iko := channel_labels == 1], np.arange(nc)[iko], 'r*')
ax[0].plot(xfeats['xcor_hf'][(iko := channel_labels == 1)], np.arange(nc)[iko], 'r*')
ax[0].plot([- .5, -.5], [0, nc], 'r--')
ax[0].set(ylabel='channel #', xlabel='high coherence', ylim=[0, nc], title='a) dead channel')
ax[1].plot(xfeats['psd_hf'], np.arange(nc))
ax[1].plot(xfeats['psd_hf'][iko := channel_labels == 2], np.arange(nc)[iko], 'r*')
ax[1].plot(xfeats['psd_hf'][(iko := channel_labels == 2)], np.arange(nc)[iko], 'r*')
ax[1].plot([.02, .02], [0, nc], 'r--')

ax[1].set(yticklabels=[], xlabel='PSD', ylim=[0, nc], title='b) noisy channel')
ax[1].sharey(ax[0])
ax[2].plot(xfeats['xcor_lf'], np.arange(nc))
ax[2].plot(xfeats['xcor_lf'][iko := channel_labels == 3], np.arange(nc)[iko], 'r*')
ax[2].plot(xfeats['xcor_lf'][(iko := channel_labels == 3)], np.arange(nc)[iko], 'r*')
ax[2].plot([-.75, -.75], [0, nc], 'r--')
ax[2].set(yticklabels=[], xlabel='low coherence', ylim=[0, nc], title='c) outside')
ax[2].sharey(ax[0])
Expand Down

0 comments on commit 1bf1d36

Please sign in to comment.