Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
3edb908
created gratton_emcp_epochs function in preprocessing/eog.py
kylemath Apr 20, 2020
7dc4062
revert commit to master
kylemath Apr 20, 2020
40d7492
fix
kylemath Apr 20, 2020
e5d69d7
revert
kylemath Apr 20, 2020
3c2a163
fix
kylemath Apr 20, 2020
5dcaac6
space
kylemath Apr 20, 2020
aef3e00
Merge remote-tracking branch 'upstream/master'
kylemath May 1, 2020
19e860e
Merge remote-tracking branch 'upstream/master'
kylemath May 3, 2020
0962501
initialize new branch with boxy.py file and folder in io with tests
kylemath May 3, 2020
40c80b2
fixing eog nonchange
kylemath May 3, 2020
1e5d1b1
fix
kylemath May 3, 2020
9452e28
fix
kylemath May 3, 2020
9bbdb57
fix
kylemath May 3, 2020
19d4894
fix
kylemath May 3, 2020
0dd396b
fix
kylemath May 3, 2020
fd08dec
rebase fix?
kylemath May 3, 2020
6ca09ee
fix?
kylemath May 3, 2020
4aa880b
final fix (sublime settings
kylemath May 3, 2020
4f2ee27
added dataset import information
kylemath May 4, 2020
710c6a1
updated dataset stuff
kylemath May 4, 2020
22d71c5
correct hash from osf
kylemath May 4, 2020
d46874c
working data load
kylemath May 4, 2020
2480644
debuging loading file
kylemath May 4, 2020
5d40535
debugged import function, plotting locations kinda works, dists calcu…
kylemath May 4, 2020
17253b0
fixed name for return in utils.py
kylemath May 4, 2020
31139cc
extra newline in boxy.py
kylemath May 4, 2020
eb1eb12
fixing newlines
kylemath May 4, 2020
bb4d804
removed call to findfiducials
kylemath May 4, 2020
d635296
removed mne calls
kylemath May 4, 2020
36db210
revert to import mne to debug data
kylemath May 4, 2020
de69988
working data load and plot, needed to divide expected data by 16 for …
kylemath May 4, 2020
be3b6ec
pull sorce number from code
kylemath May 4, 2020
a216b4f
working plotting with rescale
kylemath May 4, 2020
6985bc2
fixed import of coreg function
kylemath May 4, 2020
2bab9aa
removed transform into fsaverage since it already was there
kylemath May 4, 2020
ab2b2de
working through bug plotting dig
kylemath May 4, 2020
6d08ca4
working example
kylemath May 5, 2020
62136ce
working version that loads in coordiantes and transforms correctly
kylemath May 5, 2020
d9eef81
fixed review comments
kylemath May 5, 2020
38b8c3b
created gratton_emcp_epochs function in preprocessing/eog.py
kylemath Apr 20, 2020
1fd2c3e
revert commit to master
kylemath Apr 20, 2020
9f67db3
fix
kylemath Apr 20, 2020
fb0cbb3
revert
kylemath Apr 20, 2020
1180a3d
fix
kylemath Apr 20, 2020
a08b170
space
kylemath Apr 20, 2020
264ef06
Merge branch 'master' of https://github.com/kylemath/mne-python
kylemath May 6, 2020
b8a3319
initialize new branch with boxy.py file and folder in io with tests
kylemath May 3, 2020
03ef3a7
fixing eog nonchange
kylemath May 3, 2020
a4882b2
fix
kylemath May 3, 2020
4ac590d
fix
kylemath May 3, 2020
8121cdb
rebase fix?
kylemath May 3, 2020
3e1f72a
fix?
kylemath May 3, 2020
1dfd09f
added dataset import information
kylemath May 4, 2020
884c5c8
updated dataset stuff
kylemath May 4, 2020
10fc5e7
correct hash from osf
kylemath May 4, 2020
32adc37
working data load
kylemath May 4, 2020
26c3c76
debuging loading file
kylemath May 4, 2020
9a02fc8
debugged import function, plotting locations kinda works, dists calcu…
kylemath May 4, 2020
753d66d
fixed name for return in utils.py
kylemath May 4, 2020
5cef74d
extra newline in boxy.py
kylemath May 4, 2020
0206d54
fixing newlines
kylemath May 4, 2020
10c1612
removed call to findfiducials
kylemath May 4, 2020
0be3184
removed mne calls
kylemath May 4, 2020
a7e8c11
revert to import mne to debug data
kylemath May 4, 2020
c6742a3
working data load and plot, needed to divide expected data by 16 for …
kylemath May 4, 2020
840d78a
pull sorce number from code
kylemath May 4, 2020
a4ede9f
working plotting with rescale
kylemath May 4, 2020
581a31c
fixed import of coreg function
kylemath May 4, 2020
d9240de
removed transform into fsaverage since it already was there
kylemath May 4, 2020
0fd200f
working through bug plotting dig
kylemath May 4, 2020
e9af9cb
working example
kylemath May 5, 2020
27edac2
working version that loads in coordiantes and transforms correctly
kylemath May 5, 2020
74d6ebd
fixed review comments
kylemath May 5, 2020
f6f5cd2
Merge branch 'importBOXY' of https://github.com/kylemath/mne-python i…
kylemath May 6, 2020
4ee0ffc
rebase from import to fix pandas use
kylemath May 7, 2020
788e06a
filetype now determined in RawBOXY and passed to _read_segment_file. …
kuziekj May 7, 2020
a37a2e7
removed pdb
kylemath May 7, 2020
ecf71f0
Merge pull request #3 from kylemath/read_data_numpy2
kylemath May 7, 2020
a750db5
Merge branch 'master' into importBOXY
kylemath May 7, 2020
8589a6c
new data file with more files
kylemath May 7, 2020
85d3482
tested new dataset, added four new keys for four montages, and testin…
kylemath May 8, 2020
bef2e3f
pulling in source detector plotting temporarily
kylemath May 8, 2020
c6b14af
WIP trying to load multiple boxy files
kuziekj May 8, 2020
007dfba
seems to be working...will find multiple files and combine all the da…
kuziekj May 11, 2020
4654083
Merge branch 'master' into multiFile
kylemath May 12, 2020
a9b24a4
boxy.py now takes a datatype arguments to return only AC, DC, or Ph data
kuziekj May 12, 2020
532ce23
changed tutorial to plot montage a and b
kuziekj May 12, 2020
c558506
updated dataset P1 with arr
kylemath May 12, 2020
a59fc00
added new dataset with better variable names, removed look for .tol file
kylemath May 12, 2020
8f2cffa
Merge branch 'master' into importBOXY
kylemath May 12, 2020
0680c75
Merge branch 'importBOXY' into multifile
kylemath May 12, 2020
98d0235
Merge branch 'master' into importBOXY
kylemath May 12, 2020
3e62953
Merge branch 'importBOXY' into multiFile
kylemath May 12, 2020
33134d3
made some changes based on comments. re-organised channels so lower w…
kuziekj May 12, 2020
10ca706
pushed the wrong tutorial file, this should fix that
kuziekj May 12, 2020
20c3808
Merge branch 'master' into importBOXY
kylemath May 13, 2020
9fec7b3
Merge branch 'master' into multiFile
kylemath May 13, 2020
f8fdf06
Merge branch 'multiFile' of https://github.com/kylemath/mne-python in…
kylemath May 13, 2020
3a617fb
style changes for flake8 on boxy.py
kylemath May 13, 2020
dc62a03
tested parsed data set, channel numbers considered across all montage…
kuziekj May 13, 2020
7fe90ff
blocks are now appended together, so data is now n channels by (m tim…
kuziekj May 13, 2020
0f9ea82
Merge branch 'master' into importBOXY
kylemath May 14, 2020
1175155
Merge branch 'importBOXY' into multiFile
kylemath May 14, 2020
d9391b2
Merge branch 'multiFile' of https://github.com/kylemath/mne-python in…
kylemath May 14, 2020
9199c2a
added markers to indicate the end of each block. will also check for …
kuziekj May 14, 2020
9a4be25
Merge branch 'master' into importBOXY
kylemath May 15, 2020
0904a20
Merge branch 'importBOXY' into multiFile
kylemath May 15, 2020
a646c8a
Merge pull request #5 from kylemath/multiFile
kylemath May 15, 2020
99dfe9e
marker channel kind is now stim instead of fnirs_raw, coords are no l…
kuziekj May 15, 2020
4c392e5
Merge branch 'master' into importBOXY
kylemath May 16, 2020
9197ee4
Merge branch 'importBOXY' into events_epochs
kylemath May 16, 2020
9a83642
went through entire boxy tutorial to create and compare epochs
kuziekj May 19, 2020
75b188d
Merge branch 'master' into importBOXY
kylemath May 20, 2020
89b2963
Merge branch 'importBOXY' into events_epochs
kylemath May 20, 2020
a7cb72d
Merge branch 'events_epochs' of https://github.com/kylemath/mne-pytho…
kylemath May 20, 2020
b666512
added a few messages to print if markers are found or not, for each m…
kuziekj May 20, 2020
c08f328
Merge branch 'master' into importBOXY
kylemath May 20, 2020
3fe8cad
Merge branch 'importBOXY' into events_epochs
kylemath May 20, 2020
dbf0e42
Merge branch 'events_epochs' of https://github.com/kylemath/mne-pytho…
kylemath May 20, 2020
91ba501
updated dataset
kylemath May 20, 2020
39deb72
marker times were off, had to change so first_samp and last_samp refe…
kuziekj May 20, 2020
b63e1d6
Merge pull request #6 from kylemath/events_epochs
kuziekj May 21, 2020
f897bd6
phase data will be unwrapped, detrended, and outliers removed
kuziekj May 21, 2020
b13d305
Merge branch 'master' into importBOXY
kylemath May 22, 2020
7b7db20
Merge branch 'importBOXY' into phase_unwrap
kylemath May 22, 2020
93ce003
added conversion of phase to pico seconds
kuziekj May 22, 2020
47c0565
initial push to create PR
kuziekj May 22, 2020
7fbea60
fixed conflict with import dataset
kylemath May 22, 2020
5563e58
Merge branch 'importBOXY' into phase_unwrap
kylemath May 22, 2020
57bed45
Merge branch 'phase_unwrap' of https://github.com/kylemath/mne-python…
kylemath May 22, 2020
b051787
Merge branch 'importBOXY' into plot_all_montages
kuziekj May 25, 2020
2e91987
tutorial will now combine montages and plot results of this combination
kuziekj May 26, 2020
5c7b3c0
added wrong file to earlier commit
kuziekj May 26, 2020
51be83c
working on adding two new data types, fnirs_ac and fnirs_ph
kuziekj May 28, 2020
5ae1391
Merge branch 'master' into importBOXY
kylemath May 28, 2020
51e4cca
Merge branch 'master' into phase_unwrap
kylemath May 28, 2020
7ee083f
made test script in temporary dev folder
kylemath May 28, 2020
9762f42
Merge branch 'importBOXY' into phase_unwrap
kylemath May 28, 2020
d8bfcc3
phase data will be unwrapped, detrended, and outliers removed
kuziekj May 21, 2020
0de6fd5
added conversion of phase to pico seconds
kuziekj May 22, 2020
375e51a
working on adding two new data types, fnirs_ac and fnirs_ph
kuziekj May 28, 2020
78279f4
made test script in temporary dev folder
kylemath May 28, 2020
8f16ba6
Merge branch 'phase_unwrap' of https://github.com/kylemath/mne-python…
kylemath May 28, 2020
479558d
all plots except haemo should now be able to handle fnirs_ph, might n…
kuziekj May 28, 2020
2c7f728
changed ph default scale
kylemath May 29, 2020
38ea35d
Merge pull request #8 from kylemath/phase_unwrap
kuziekj May 29, 2020
32f7cdc
removed some commented code
kuziekj May 29, 2020
d82520c
Merge branch 'master' into importBOXY
kylemath May 29, 2020
1acdb02
reverted to existing tutorial
kylemath May 29, 2020
035dd05
added sections to plot both AC and Ph data
kuziekj May 29, 2020
6b14593
fixed conflicts
kylemath Jun 10, 2020
a9fbc0c
Merge branch 'importBOXY' into plot_all_montages
kylemath Jun 10, 2020
bbbc0fe
changed time scale of ac data to 10 sec, replaced raw ac with haemo f…
kylemath Jun 10, 2020
a2042c7
now only plots AC haemo and phase data. Cleaned up formatting
kuziekj Jun 10, 2020
443269c
Merge pull request #9 from kylemath/plot_all_montages
kuziekj Jun 11, 2020
75fb2d2
plot_80 and boxy.py should now hopefully conform to pep8
kuziekj Jun 15, 2020
b110623
Merge branch 'master' into importBOXY
kylemath Jun 16, 2020
25ffccc
Merge branch 'importBOXY' of https://github.com/kylemath/mne-python i…
kylemath Jun 16, 2020
ca38e68
Merge branch 'importBOXY' into clean_up
kylemath Jun 16, 2020
d68528c
fixed flake8 on boxy.py
kylemath Jun 16, 2020
f746b97
flake8 on other files
kylemath Jun 16, 2020
070db84
removed dev folder
kylemath Jun 16, 2020
2d7a2bb
a few more
kylemath Jun 16, 2020
83dad8a
Merge pull request #11 from kylemath/clean_up
kylemath Jun 16, 2020
47e5ac3
only combined montages plotted, scales have been adjusted, fixed chan…
kuziekj Jun 16, 2020
495c80b
Merge branch 'master' into importBOXY
kylemath Jun 17, 2020
8e5dddd
fixed conflict
kylemath Jun 17, 2020
3d15b5c
in progress changes for testing
kuziekj Jun 17, 2020
84f9425
further changes for tests
kuziekj Jun 17, 2020
03eb7b7
fixing conflicts
kuziekj Jun 17, 2020
4c687a9
Merge pull request #16 from kylemath/clean_up
kylemath Jun 17, 2020
4ffd552
fixed some apparent style issues, removed print statements added prev…
kuziekj Jun 18, 2020
1b2ae92
more fixes, and removed forgotten print commands
kuziekj Jun 18, 2020
70aa689
Merge branch 'master' into importBOXY
kylemath Jun 20, 2020
c2912bb
Merge branch 'importBOXY' of https://github.com/kylemath/mne-python i…
kylemath Jun 20, 2020
ff8ed41
Merge pull request #18 from kylemath/test_fixes
kylemath Jun 20, 2020
b498689
fixes for style and CI tests
kuziekj Jun 22, 2020
13f3513
Merge pull request #19 from kylemath/more_test_fixes
kuziekj Jun 22, 2020
3468f2b
start of making the tutorial a bit more simple
kuziekj Jun 22, 2020
441697f
removed some plots to keep total under 20, and keep CI test happy
kuziekj Jun 22, 2020
2a36c41
changed filter settings so an error is not returned
kuziekj Jun 22, 2020
d0e16a4
Merge pull request #20 from kylemath/simple_tutorial
kuziekj Jun 23, 2020
19eab24
Merge branch 'master' into importBOXY
kylemath Jun 24, 2020
3f85a7f
quick change to see if comment characters change html test
kuziekj Jun 24, 2020
7bc8b2c
Merge pull request #22 from kylemath/tutorial_changes
kylemath Jun 25, 2020
af5224f
testing out a method of plotting hbo and hbr evoked
kuziekj Jun 25, 2020
2a239d6
added more to difference evoked subplot, fixed a missing variable
kuziekj Jun 25, 2020
61962a7
removed code for older plots
kuziekj Jun 26, 2020
5d60033
merged recent changes, fixed conflicts, changed channel names
kuziekj Jun 27, 2020
55d359d
missing blank line at end of eog.py
kuziekj Jun 27, 2020
7384f8a
removed stray print statement
kuziekj Jul 2, 2020
058df18
made sure files are sorted in the correct order
kuziekj Jul 3, 2020
82a9f39
made changes for checklist
kuziekj Jul 7, 2020
02e7f68
table of contents should now display properly
kuziekj Jul 7, 2020
aaa02a4
added references, and description, of boxy example dataset
kuziekj Jul 7, 2020
46ef236
Merge pull request #23 from kylemath/tutorial_changes
kuziekj Jul 8, 2020
9ddc784
Merge branch 'master' into importBOXY
kuziekj Jul 8, 2020
26df541
fixed merge conflicts
kuziekj Jul 8, 2020
e5eed6d
fixed style issue in plot_80
kuziekj Jul 8, 2020
71b388e
addressed some checklist items
kuziekj Jul 9, 2020
35df433
Merge pull request #25 from kylemath/checklist
kuziekj Jul 13, 2020
8ffa778
Merge branch 'master' into importBOXY
kuziekj Jul 13, 2020
7d86e43
Merge branch 'master' into importBOXY
kuziekj Jul 16, 2020
1c7b8fe
updated info about boxy dataset
kuziekj Jul 17, 2020
f3cd42e
Merge branch 'master' into importBOXY
kuziekj Jul 21, 2020
c33212b
Merge branch 'master' into importBOXY
kylemath Jul 24, 2020
e788598
should now only read in boxy data file (#26)
kuziekj Jul 29, 2020
62ab96b
fix merge conflict
kuziekj Jul 29, 2020
0132e09
Events from raw data file are added as annotations (#27)
kuziekj Aug 6, 2020
496898a
Merge branch 'master' into importBOXY
kuziekj Aug 6, 2020
6672d7b
changed filenames to match testing data set (#29)
kuziekj Aug 12, 2020
91b9012
fixed merge conflict in eog.py
kuziekj Aug 12, 2020
c24013a
Merge branch 'master' into importBOXY
kuziekj Aug 14, 2020
1063170
changes to make ci tests happy
kuziekj Aug 15, 2020
22b3271
removed print statements and references to old dataset
kuziekj Aug 21, 2020
f425263
fixed merge conflict
kuziekj Aug 21, 2020
34c5f7c
removed extra blank space
kuziekj Aug 21, 2020
fcaa8ff
Addressing reviewer comments (#30)
kuziekj Aug 31, 2020
a49059e
Merge branch 'master' into importBOXY
kuziekj Aug 31, 2020
401a152
Merge branch 'master' into importBOXY
kuziekj Aug 31, 2020
a402c15
removed reference to fnirs_fd_phase
kuziekj Aug 31, 2020
a02c20c
removed reference to degrees for fnirs_fd_phase
kuziekj Aug 31, 2020
32dfa3a
added line to return channel type
kylemath Nov 17, 2020
e91a2ea
working through review
kylemath Nov 18, 2020
336ed5c
fixed conflicts
kylemath Nov 18, 2020
c51bb0d
fixed indent bug
kylemath Nov 18, 2020
7b0468f
MRG, MAINT: Test 3.9 (#8533)
larsoner Nov 18, 2020
5305fee
MRG, VIZ, FIX: plot_sensors title and interactivity (#8536)
drammock Nov 18, 2020
d120a32
fix example (#8539)
drammock Nov 18, 2020
b6bd62e
adding new channel info throughout codebase
kylemath Nov 18, 2020
d8e8955
fixing merging errors
kylemath Nov 18, 2020
344f5ab
CI: Use 20.04 (#8541)
larsoner Nov 18, 2020
50d5863
ENH: Add realign_raw (#8540)
larsoner Nov 18, 2020
02db0b8
MRG, MAINT: deduplicate definition of FIFF constants (#8537)
drammock Nov 19, 2020
0e56673
MRG, MAINT: Try conda-forge (#8046)
larsoner Nov 19, 2020
07d96d1
Merge remote-tracking branch 'upstream/master' into importBOXY
larsoner Nov 19, 2020
3e69ffc
FIX: Fix constants, reading, tests
larsoner Nov 19, 2020
cfdfa46
ENH: Efficient read
larsoner Nov 19, 2020
d0a6050
Update tutorials/io/plot_30_reading_fnirs_data.py
kylemath Nov 19, 2020
c96908d
Update tutorials/io/plot_30_reading_fnirs_data.py
kylemath Nov 19, 2020
759f042
updated plot_30 tutorial boxy info
kylemath Nov 19, 2020
fbd9e79
typo
kylemath Nov 19, 2020
983200d
FIX: SI units and backticks
larsoner Nov 19, 2020
4398d12
FIX: Unit
larsoner Nov 20, 2020
9f6beb5
FIX: Wording, comma
larsoner Nov 20, 2020
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on: [status]
jobs:
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codespell_and_flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
style:
if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
CODESPELL_DIRS: 'mne/ doc/ tutorials/ examples/'
CODESPELL_SKIPS: 'doc/auto_*,*.fif,*.eve,*.gz,*.tgz,*.zip,*.mat,*.stc,*.label,*.w,*.bz2,*.annot,*.sulc,*.log,*.local-copy,*.orig_avg,*.inflated_avg,*.gii,*.pyc,*.doctree,*.pickle,*.inv,*.png,*.edf,*.touch,*.thickness,*.nofix,*.volume,*.defect_borders,*.mgh,lh.*,rh.*,COR-*,FreeSurferColorLUT.txt,*.examples,.xdebug_mris_calc,bad.segments,BadChannels,*.hist,empty_file,*.orig,*.js,*.map,*.ipynb,searchindex.dat,install_mne_c.rst,plot_*.rst,*.rst.txt,c_EULA.rst*,*.html,gdf_encodes.txt,*.svg'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compat_minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
job:
if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
name: 'py3.7'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compat_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
job:
if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
name: 'py3.6'
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
defaults:
run:
shell: bash
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/linux_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,22 @@ jobs:
job:
if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
name: 'py3.8'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
env:
CONDA_ENV: 'environment.yml'
DISPLAY: ':99.0'
MNE_LOGGING_LEVEL: 'warning'
OPENBLAS_NUM_THREADS: '1'
MKL_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.8'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
- run: ./tools/setup_xvfb.sh
name: 'Setup xvfb'
- uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/linux_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
# PIP + non-default stim channel + log level info
job:
if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
name: 'py3.8'
runs-on: ubuntu-latest
name: 'py3.9'
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
Expand All @@ -22,14 +22,12 @@ jobs:
MNE_STIM_CHANNEL: 'STI101'
OPENBLAS_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.9'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
- run: ./tools/setup_xvfb.sh
name: 'Setup xvfb'
- uses: actions/setup-python@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
.. -*- mode: rst -*-

|Travis|_ |Azure|_ |Circle|_ |Codecov|_ |PyPI|_ |conda-forge|_ |Zenodo|_
|GH-Linux|_ |GH-macOS|_ |Azure|_ |Circle|_ |Codecov|_ |PyPI|_ |conda-forge|_ |Zenodo|_

|MNE|_

.. |Travis| image:: https://api.travis-ci.org/mne-tools/mne-python.svg?branch=master
.. _Travis: https://travis-ci.org/mne-tools/mne-python/branches
.. |GH-Linux| image:: https://github.com/mne-tools/mne-python/workflows/linux%20/%20conda/badge.svg?branch=master
.. _GH-Linux: https://github.com/mne-tools/mne-python/actions?query=branch:master+event:push

.. |GH-macOS| image:: https://github.com/mne-tools/mne-python/workflows/macos%20/%20conda/badge.svg?branch=master
.. _GH-macOS: https://github.com/mne-tools/mne-python/actions?query=branch:master+event:push

.. |Azure| image:: https://dev.azure.com/mne-tools/mne-python/_apis/build/status/mne-tools.mne-python?branchName=master
.. _Azure: https://dev.azure.com/mne-tools/mne-python/_build/latest?definitionId=1&branchName=master
Expand Down
1 change: 0 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ stages:
OPENBLAS_NUM_THREADS: 1
PYTHONUNBUFFERED: 1
PYTHONIOENCODING: 'utf-8'
MKL_NUM_THREADS: 1
AZURE_CI_WINDOWS: 'true'
PYTHON_ARCH: 'x64'
strategy:
Expand Down
1 change: 1 addition & 0 deletions doc/_includes/data_formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ EEG :ref:`Persyst <import-persyst>` .lay :func:`mn

NIRS :ref:`NIRx <import-nirx>` directory :func:`mne.io.read_raw_nirx`

NIRS :ref:`BOXY <import-boxy>` directory :func:`mne.io.read_raw_boxy`
============ ============================================ ========= ===================================

More details are provided in the tutorials in the :ref:`tut-data-formats`
Expand Down
6 changes: 6 additions & 0 deletions doc/changes/latest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ Current (0.22.dev0)

.. |Victoria Peterson| replace:: **Victoria Peterson**

.. |Jonathan Kuziek| replace:: **Jonathan Kuziek**


Enhancements
~~~~~~~~~~~~
- Add :class:`mne.decoding.SSD` for spatial filtering with spatio-spectral-decomposition (:gh:`7070` **by new contributor** |Victoria Peterson|_ and `Denis Engemann`_)

- Add reader for optical imaging data recorded using ISS Imgagent I/II hardware and BOXY recording software in :func:`mne.io.read_raw_boxy` (:gh:`7717` **by new contributor** |Jonathan Kuziek|_ and `Kyle Mathewson`_)

- Add options to use labels in :func:`mne.minimum_norm.get_point_spread` and :func:`mne.minimum_norm.get_cross_talk` (:gh:`8275` by `Olaf Hauk`_)

- Update ``surfaces`` argument in :func:`mne.viz.plot_alignment` to allow dict for transparency values, and set default for sEEG data to have transparency (:gh:`8445` by `Keith Doelling`_)
Expand All @@ -35,6 +39,8 @@ Enhancements

- Add ``proj`` argument to :func:`mne.make_fixed_length_epochs` (:gh:`8351` by `Eric Larson`_)

- Add :func:`mne.preprocessing.realign_raw` to realign simultaneous raw recordings in the presence of clock drift (:gh:`8539` by `Eric Larson`_)

- Reduce memory usage of volume source spaces (:gh:`8379` by `Eric Larson`_)

- Speed up heavy use of :meth:`mne.SourceMorph.apply` for volumetric source spaces by use of the method :meth:`mne.SourceMorph.compute_vol_morph_mat` (:gh:`8366` by `Eric Larson`_)
Expand Down
2 changes: 2 additions & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@

.. _Rahul Nadkarni: https://github.com/rahuln

.. _Jonathan Kuziek: https://github.com/kuziekj

.. _Lau Møller Andersen: https://github.com/ualsbombe

.. _Martin Schulz: https://github.com/marsipu
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def reset_warnings(gallery_conf, fname):
'n_dipoles_fwd', 'n_picks_ref', 'n_coords',
# Undocumented (on purpose)
'RawKIT', 'RawEximia', 'RawEGI', 'RawEEGLAB', 'RawEDF', 'RawCTF', 'RawBTi',
'RawBrainVision', 'RawCurry', 'RawNIRX', 'RawGDF', 'RawSNIRF',
'RawBrainVision', 'RawCurry', 'RawNIRX', 'RawGDF', 'RawSNIRF', 'RawBOXY',
'RawPersyst', 'RawNihon',
# sklearn subclasses
'mapping', 'to', 'any',
Expand Down
2 changes: 2 additions & 0 deletions doc/python_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Reading raw data
read_raw_fif
read_raw_eximia
read_raw_fieldtrip
read_raw_boxy
read_raw_persyst
read_raw_nihon

Expand Down Expand Up @@ -380,6 +381,7 @@ Projections:
oversampled_temporal_projection
peak_finder
read_ica
realign_raw
regress_artifact
corrmap
read_ica_eeglab
Expand Down
29 changes: 13 additions & 16 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mne
channels:
- defaults
- conda-forge
dependencies:
- python>=3.8
- pip
Expand All @@ -24,18 +24,15 @@ dependencies:
- imageio
- tqdm
- spyder-kernels
- pip:
- mne
- imageio-ffmpeg>=0.4.1
- vtk>=9.0.1
- pyvista>=0.24
- pyvistaqt>=0.2.0
- mayavi
- PySurfer[save_movie]
- dipy --only-binary dipy
- nibabel
- nilearn
- neo
- python-picard
- PyQt5>=5.10,<5.14; platform_system == "Darwin"
- PyQt5>=5.10; platform_system != "Darwin"
- imageio-ffmpeg>=0.4.1
- vtk>=9.0.1
- pyvista>=0.24
- pyvistaqt>=0.2.0
- mayavi
- PySurfer
- dipy
- nibabel
- nilearn
- python-picard
- pyqt
- mne
1 change: 0 additions & 1 deletion examples/visualization/plot_eeglab_head_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
fake_evoked.plot_sensors(sphere=(x, y, z, radius), axes=ax[1], show=False)

# add titles
fig.texts[0].remove()
ax[0].set_title('MNE channel projection', fontweight='bold')
ax[1].set_title('EEGLAB channel projection', fontweight='bold')

Expand Down
4 changes: 2 additions & 2 deletions mne/beamformer/tests/test_lcmv.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def test_lcmv_reg_proj(proj, weight_norm):
(0.05, 'unit-noise-gain', False, None, 83, 86),
(0.05, 'unit-noise-gain', False, 0.8, 83, 86), # depth same for wn != None
# no reg
(0.00, 'unit-noise-gain', True, None, 45, 99), # TODO: Still not stable
(0.00, 'unit-noise-gain', True, None, 35, 99), # TODO: Still not stable
])
def test_localization_bias_fixed(bias_params_fixed, reg, weight_norm, use_cov,
depth, lower, upper):
Expand Down Expand Up @@ -687,7 +687,7 @@ def test_localization_bias_fixed(bias_params_fixed, reg, weight_norm, use_cov,
(0.00, 'vector', 'unit-noise-gain-invariant', True, None, 50, 65),
(0.00, 'vector', 'unit-noise-gain', True, None, 42, 65),
(0.00, 'vector', 'nai', True, None, 42, 65),
(0.00, 'max-power', None, True, None, 15, 19),
(0.00, 'max-power', None, True, None, 13, 19),
(0.00, 'max-power', 'unit-noise-gain-invariant', True, None, 43, 50),
(0.00, 'max-power', 'unit-noise-gain', True, None, 43, 50),
(0.00, 'max-power', 'nai', True, None, 43, 50),
Expand Down
52 changes: 14 additions & 38 deletions mne/channels/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from ..io.pick import (channel_type, pick_info, pick_types, _picks_by_type,
_check_excludes_includes, _contains_ch_type,
channel_indices_by_type, pick_channels, _picks_to_idx,
_get_channel_types)
_get_channel_types, get_channel_type_constants)
from ..io.write import DATE_NONE
from ..io._digitization import _get_data_as_dict_from_dig

Expand Down Expand Up @@ -80,7 +80,8 @@ def _get_ch_type(inst, ch_type, allow_ref_meg=False):
"""
if ch_type is None:
allowed_types = ['mag', 'grad', 'planar1', 'planar2', 'eeg', 'csd',
'fnirs_cw_amplitude', 'fnirs_od', 'hbo', 'hbr',
'fnirs_cw_amplitude', 'fnirs_fd_ac_amplitude',
'fnirs_fd_phase', 'fnirs_od', 'hbo', 'hbr',
'ecog', 'seeg']
allowed_types += ['ref_meg'] if allow_ref_meg else []
for type_ in allowed_types:
Expand Down Expand Up @@ -275,41 +276,11 @@ def get_montage(self):
return montage


# XXX Eventually de-duplicate with _kind_dict of mne/io/meas_info.py
_human2fiff = {'ecg': FIFF.FIFFV_ECG_CH,
'eeg': FIFF.FIFFV_EEG_CH,
'emg': FIFF.FIFFV_EMG_CH,
'eog': FIFF.FIFFV_EOG_CH,
'exci': FIFF.FIFFV_EXCI_CH,
'ias': FIFF.FIFFV_IAS_CH,
'misc': FIFF.FIFFV_MISC_CH,
'resp': FIFF.FIFFV_RESP_CH,
'seeg': FIFF.FIFFV_SEEG_CH,
'stim': FIFF.FIFFV_STIM_CH,
'syst': FIFF.FIFFV_SYST_CH,
'bio': FIFF.FIFFV_BIO_CH,
'ecog': FIFF.FIFFV_ECOG_CH,
'fnirs_cw_amplitude': FIFF.FIFFV_FNIRS_CH,
'fnirs_od': FIFF.FIFFV_FNIRS_CH,
'hbo': FIFF.FIFFV_FNIRS_CH,
'hbr': FIFF.FIFFV_FNIRS_CH}
_human2unit = {'ecg': FIFF.FIFF_UNIT_V,
'eeg': FIFF.FIFF_UNIT_V,
'emg': FIFF.FIFF_UNIT_V,
'eog': FIFF.FIFF_UNIT_V,
'exci': FIFF.FIFF_UNIT_NONE,
'ias': FIFF.FIFF_UNIT_NONE,
'misc': FIFF.FIFF_UNIT_V,
'resp': FIFF.FIFF_UNIT_NONE,
'seeg': FIFF.FIFF_UNIT_V,
'stim': FIFF.FIFF_UNIT_NONE,
'syst': FIFF.FIFF_UNIT_NONE,
'bio': FIFF.FIFF_UNIT_V,
'ecog': FIFF.FIFF_UNIT_V,
'fnirs_cw_amplitude': FIFF.FIFF_UNIT_V,
'fnirs_od': FIFF.FIFF_UNIT_NONE,
'hbo': FIFF.FIFF_UNIT_MOL,
'hbr': FIFF.FIFF_UNIT_MOL}
channel_type_constants = get_channel_type_constants()
_human2fiff = {k: v.get('kind', FIFF.FIFFV_COIL_NONE) for k, v in
channel_type_constants.items()}
_human2unit = {k: v.get('unit', FIFF.FIFF_UNIT_NONE) for k, v in
channel_type_constants.items()}
_unit2human = {FIFF.FIFF_UNIT_V: 'V',
FIFF.FIFF_UNIT_T: 'T',
FIFF.FIFF_UNIT_T_M: 'T/m',
Expand Down Expand Up @@ -440,7 +411,8 @@ def set_channel_types(self, mapping, verbose=None):
The following sensor types are accepted:

ecg, eeg, emg, eog, exci, ias, misc, resp, seeg, stim, syst, ecog,
hbo, hbr, fnirs_cw_amplitude, fnirs_od
hbo, hbr, fnirs_cw_amplitude, fnirs_fd_ac_amplitude,
fnirs_fd_phase, fnirs_od

.. versionadded:: 0.9.0
"""
Expand Down Expand Up @@ -482,6 +454,10 @@ def set_channel_types(self, mapping, verbose=None):
coil_type = FIFF.FIFFV_COIL_FNIRS_HBR
elif ch_type == 'fnirs_cw_amplitude':
coil_type = FIFF.FIFFV_COIL_FNIRS_CW_AMPLITUDE
elif ch_type == 'fnirs_fd_ac_amplitude':
coil_type = FIFF.FIFFV_COIL_FNIRS_FD_AC_AMPLITUDE
elif ch_type == 'fnirs_fd_phase':
coil_type = FIFF.FIFFV_COIL_FNIRS_FD_PHASE
elif ch_type == 'fnirs_od':
coil_type = FIFF.FIFFV_COIL_FNIRS_OD
else:
Expand Down
4 changes: 2 additions & 2 deletions mne/channels/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import numpy as np

from ..transforms import _pol_to_cart, _cart_to_sph
from ..io.pick import pick_types, _picks_to_idx
from ..io.pick import pick_types, _picks_to_idx, _FNIRS_CH_TYPES_SPLIT
from ..io.constants import FIFF
from ..io.meas_info import Info
from ..utils import (_clean_names, warn, _check_ch_locs, fill_doc,
Expand Down Expand Up @@ -917,7 +917,7 @@ def _merge_ch_data(data, ch_type, names, method='rms'):
if ch_type == 'grad':
data = _merge_grad_data(data, method)
else:
assert ch_type in ('hbo', 'hbr', 'fnirs_cw_amplitude', 'fnirs_od')
assert ch_type in _FNIRS_CH_TYPES_SPLIT
data, names = _merge_nirs_data(data, names)
return data, names

Expand Down
15 changes: 8 additions & 7 deletions mne/channels/tests/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,22 @@ def test_set_channel_types():
# Error Tests
# Test channel name exists in ch_names
mapping = {'EEG 160': 'EEG060'}
pytest.raises(ValueError, raw.set_channel_types, mapping)
with pytest.raises(ValueError, match=r"name \(EEG 160\) doesn't exist"):
raw.set_channel_types(mapping)
# Test change to illegal channel type
mapping = {'EOG 061': 'xxx'}
pytest.raises(ValueError, raw.set_channel_types, mapping)
# Test changing type if in proj (avg eeg ref here)
with pytest.raises(ValueError, match='cannot change to this channel type'):
raw.set_channel_types(mapping)
# Test changing type if in proj
mapping = {'EEG 058': 'ecog', 'EEG 059': 'ecg', 'EEG 060': 'eog',
'EOG 061': 'seeg', 'MEG 2441': 'eeg', 'MEG 2443': 'eeg',
'MEG 2442': 'hbo'}
pytest.raises(RuntimeError, raw.set_channel_types, mapping)
# Test type change
raw2 = read_raw_fif(raw_fname)
raw2.info['bads'] = ['EEG 059', 'EEG 060', 'EOG 061']
pytest.raises(RuntimeError, raw2.set_channel_types, mapping) # has prj
with pytest.raises(RuntimeError, match='type .* in projector "PCA-v1"'):
raw2.set_channel_types(mapping) # has prj
raw2.add_proj([], remove_existing=True)
with pytest.warns(RuntimeWarning, match='The unit for channel'):
with pytest.warns(RuntimeWarning, match='unit for channel.* has changed'):
raw2 = raw2.set_channel_types(mapping)
info = raw2.info
assert info['chs'][372]['ch_name'] == 'EEG 058'
Expand Down
Loading