Skip to content

Commit

Permalink
Extra filtering example and fix dependency install (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-luke authored Jan 24, 2022
1 parent 42c546a commit 86d0050
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ General

Enhancements

* Update SNIRF exporter to meet v1.0 validator requirements :meth:`mne_nirs.io.write_raw_snirf`. By `Robert Luke`_.
* Update SNIRF exporter to meet v1.0 validator requirements :meth:`mne_nirs.io.snirf.write_raw_snirf`. By `Robert Luke`_.
* Add ability to provide custom channel weighting in :meth:`mne_nirs.statistics.RegressionResults.to_dataframe_region_of_interest` computation. By `Robert Luke`_.


Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- scipy
- matplotlib
- numba
- pandas
- pandas==1.3.2
- xlrd
- scikit-learn
- h5py
Expand Down
12 changes: 12 additions & 0 deletions examples/general/plot_30_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,18 @@
fig.axes[0].set_title('')


# %%
# Filter Neural Signal
# ---------------------------------------------------------------------
#
# The effect of filtering on the neural signal is demonstrated below.
# The green line illustrates the signal before filtering, and the red line
# shows the signal after filtering.

fig = raw_haemo.plot_psd(average=True, fmax=2, xscale='log', color='r', show=False)
raw_haemo = raw_haemo.filter(l_freq=None, h_freq=0.4, h_trans_bandwidth=0.2)
raw_haemo.plot_psd(average=True, fmax=2, xscale='log', ax=fig.axes, color='g')


# %%
# Understanding the relation between stimulus presentation and response
Expand Down
1 change: 0 additions & 1 deletion requirements_doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ sphinx-multiversion
matplotlib
pillow
numpy
pandas
h5py
https://codeload.github.com/rob-luke/mne-bids/zip/nirs
lets-plot
Expand Down
4 changes: 2 additions & 2 deletions tools/github_actions_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ else
pip install --progress-bar off --upgrade --pre --only-binary ":all:" python-dateutil pytz joblib threadpoolctl six
echo "PyQt5"
pip install --progress-bar off --upgrade --pre --only-binary ":all:" --no-deps --extra-index-url https://www.riverbankcomputing.com/pypi/simple PyQt5 PyQt5-sip PyQt5-Qt5
echo "NumPy/pandas etc."
pip install --progress-bar off --upgrade --pre --only-binary ":all:" --no-deps -i "https://pypi.anaconda.org/scipy-wheels-nightly/simple" numpy pandas "scikit-learn>=0.24.2" dipy
echo "NumPy etc."
pip install --progress-bar off --upgrade --pre --only-binary ":all:" --no-deps -i "https://pypi.anaconda.org/scipy-wheels-nightly/simple" numpy "scikit-learn>=0.24.2" dipy
echo "H5py, pillow, matplotlib"
pip install --progress-bar off --upgrade --pre --only-binary ":all:" --no-deps -f "https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com" h5py pillow matplotlib
echo "Numba, nilearn"
Expand Down

0 comments on commit 86d0050

Please sign in to comment.