Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
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
231355f
created gratton_emcp_epochs function in preprocessing/eog.py
kylemath Apr 20, 2020
6673222
revert commit to master
kylemath Apr 20, 2020
7c3988c
fix
kylemath Apr 20, 2020
5f4eb9e
revert
kylemath Apr 20, 2020
359ac72
fix
kylemath Apr 20, 2020
f6e9917
space
kylemath Apr 20, 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
f51ecba
Merge branch 'master' of https://github.com/kylemath/mne-python
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
9a10d19
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj May 11, 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
e2de80d
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
2df06bb
Merge branch 'master' of https://github.com/kylemath/mne-python
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
f81b16f
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
6b4b4fa
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
0a25db1
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
aa2cca2
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj May 19, 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
3cdba66
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
be181a1
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj May 21, 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
a8706d8
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
e3365bc
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj Jun 1, 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
71cb997
Merge branch 'master' of https://github.com/kylemath/mne-python
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
033ac4e
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj Jun 22, 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
42eadd8
Merge branch 'master' of https://github.com/kylemath/mne-python
kuziekj 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
992029a
Merge remote-tracking branch 'upstream/master'
kuziekj Jun 27, 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
b628728
Merge remote-tracking branch 'upstream/master'
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
34174cb
Merge remote-tracking branch 'upstream/master'
kuziekj Jul 13, 2020
8ffa778
Merge branch 'master' into importBOXY
kuziekj Jul 13, 2020
1630a26
Merge remote-tracking branch 'upstream/master'
kuziekj Jul 16, 2020
7d86e43
Merge branch 'master' into importBOXY
kuziekj Jul 16, 2020
1c7b8fe
updated info about boxy dataset
kuziekj Jul 17, 2020
60d9499
Merge remote-tracking branch 'upstream/master'
kuziekj Jul 21, 2020
f3cd42e
Merge branch 'master' into importBOXY
kuziekj Jul 21, 2020
6cebc86
Merge branch 'master' of https://github.com/kylemath/mne-python
kylemath Jul 24, 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
b6b8867
Merge remote-tracking branch 'upstream/master'
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
6d72511
Merge remote-tracking branch 'upstream/master'
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
4046481
fixed merge conflict in eog.py
kuziekj Aug 12, 2020
91b9012
fixed merge conflict in eog.py
kuziekj Aug 12, 2020
95d8746
Merge remote-tracking branch 'upstream/master'
kuziekj Aug 14, 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
67e1e83
Merge remote-tracking branch 'upstream/master'
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
1813532
Merge remote-tracking branch 'upstream/master'
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
ba1ba92
fixed coflict for rebase
kylemath Nov 18, 2020
586c5d9
Merge branch 'master' of https://github.com/kylemath/mne-python
kylemath Nov 18, 2020
336ed5c
fixed conflicts
kylemath Nov 18, 2020
c51bb0d
fixed indent bug
kylemath Nov 18, 2020
b6bd62e
adding new channel info throughout codebase
kylemath Nov 18, 2020
d8e8955
fixing merging errors
kylemath Nov 18, 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
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
4 changes: 4 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 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
1 change: 1 addition & 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
10 changes: 8 additions & 2 deletions mne/channels/channels.py
Original file line number Diff line number Diff line change
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 @@ -410,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 @@ -452,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
17 changes: 13 additions & 4 deletions mne/cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,8 @@ class _RegCovariance(BaseEstimator):
"""Aux class."""

def __init__(self, info, grad=0.1, mag=0.1, eeg=0.1, seeg=0.1, ecog=0.1,
hbo=0.1, hbr=0.1, fnirs_cw_amplitude=0.1, fnirs_od=0.1,
hbo=0.1, hbr=0.1, fnirs_cw_amplitude=0.1,
fnirs_fd_ac_amplitude=0.1, fnirs_fd_phase=0.1, fnirs_od=0.1,
csd=0.1, store_precision=False, assume_centered=False):
self.info = info
# For sklearn compat, these cannot (easily?) be combined into
Expand All @@ -1266,6 +1267,8 @@ def __init__(self, info, grad=0.1, mag=0.1, eeg=0.1, seeg=0.1, ecog=0.1,
self.hbo = hbo
self.hbr = hbr
self.fnirs_cw_amplitude = fnirs_cw_amplitude
self.fnirs_fd_ac_amplitude = fnirs_fd_ac_amplitude
self.fnirs_fd_phase = fnirs_fd_phase
self.fnirs_od = fnirs_od
self.csd = csd
self.store_precision = store_precision
Expand Down Expand Up @@ -1545,7 +1548,8 @@ def _smart_eigh(C, info, rank, scalings=None, projs=None,
@verbose
def regularize(cov, info, mag=0.1, grad=0.1, eeg=0.1, exclude='bads',
proj=True, seeg=0.1, ecog=0.1, hbo=0.1, hbr=0.1,
fnirs_cw_amplitude=0.1, fnirs_od=0.1, csd=0.1,
fnirs_cw_amplitude=0.1, fnirs_fd_ac_amplitude=0.1,
fnirs_fd_phase=0.1, fnirs_od=0.1, csd=0.1,
rank=None, scalings=None, verbose=None):
"""Regularize noise covariance matrix.

Expand Down Expand Up @@ -1587,7 +1591,11 @@ def regularize(cov, info, mag=0.1, grad=0.1, eeg=0.1, exclude='bads',
hbr : float (default 0.1)
Regularization factor for HBR signals.
fnirs_cw_amplitude : float (default 0.1)
Regularization factor for fNIRS raw signals.
Regularization factor for fNIRS CW raw signals.
fnirs_fd_ac_amplitude : float (default 0.1)
Regularization factor for fNIRS FD AC raw signals.
fnirs_fd_phase : float (default 0.1)
Regularization factor for fNIRS raw phase signals.
fnirs_od : float (default 0.1)
Regularization factor for fNIRS optical density signals.
csd : float (default 0.1)
Expand Down Expand Up @@ -1619,7 +1627,8 @@ def regularize(cov, info, mag=0.1, grad=0.1, eeg=0.1, exclude='bads',
scalings = _handle_default('scalings_cov_rank', scalings)
regs = dict(eeg=eeg, seeg=seeg, ecog=ecog, hbo=hbo, hbr=hbr,
fnirs_cw_amplitude=fnirs_cw_amplitude,
fnirs_od=fnirs_od, csd=csd)
fnirs_fd_ac_amplitude=fnirs_fd_ac_amplitude,
fnirs_fd_phase=fnirs_fd_phase, fnirs_od=fnirs_od, csd=csd)

if exclude is None:
raise ValueError('exclude must be a list of strings or "bads"')
Expand Down
10 changes: 8 additions & 2 deletions mne/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,26 @@
ref_meg='steelblue', misc='k', stim='k', resp='k', chpi='k',
exci='k', ias='k', syst='k', seeg='saddlebrown', dipole='k',
gof='k', bio='k', ecog='k', hbo='#AA3377', hbr='b',
fnirs_cw_amplitude='k', fnirs_od='k', csd='k'),
fnirs_cw_amplitude='k', fnirs_fd_ac_amplitude='k',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be good to use different color for the different returned types? I am thinking that users will start by simply plotting their returned signals and want to see that three types were returned, maybe different colors would make it easier to see the different types and notice the different patterns in each type.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sure, what other colours are available for phase and ac data?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a standard in the literature (similar to how HbO is always red and HbR blue?), otherwise something pleasing (anything but fluro green please ;) )

fnirs_fd_phase='k', fnirs_od='k', csd='k'),
units=dict(mag='fT', grad='fT/cm', eeg='µV', eog='µV', ecg='µV', emg='µV',
misc='AU', seeg='mV', dipole='nAm', gof='GOF', bio='µV',
ecog='µV', hbo='µM', hbr='µM', ref_meg='fT',
fnirs_cw_amplitude='V', fnirs_od='V', csd='mV/m²'),
fnirs_cw_amplitude='V', fnirs_fd_ac_amplitude='V',
fnirs_fd_phase='rad', fnirs_od='V', csd='mV/m²'),
# scalings for the units
scalings=dict(mag=1e15, grad=1e13, eeg=1e6, eog=1e6, emg=1e6, ecg=1e6,
misc=1.0, seeg=1e3, dipole=1e9, gof=1.0, bio=1e6, ecog=1e6,
hbo=1e6, hbr=1e6, ref_meg=1e15, fnirs_cw_amplitude=1.0,
fnirs_fd_ac_amplitude=1.0, fnirs_fd_phase=1.,
fnirs_od=1.0, csd=1e3),
# rough guess for a good plot
scalings_plot_raw=dict(mag=1e-12, grad=4e-11, eeg=20e-6, eog=150e-6,
ecg=5e-4, emg=1e-3, ref_meg=1e-12, misc='auto',
stim=1, resp=1, chpi=1e-4, exci=1, ias=1, syst=1,
seeg=1e-4, bio=1e-6, ecog=1e-4, hbo=10e-6,
hbr=10e-6, whitened=10., fnirs_cw_amplitude=2e-2,
fnirs_fd_ac_amplitude=2e-2, fnirs_fd_phase=2e-1,
fnirs_od=2e-2, csd=200e-4),
scalings_cov_rank=dict(mag=1e12, grad=1e11, eeg=1e5, # ~100x scalings
seeg=1e1, ecog=1e4, hbo=1e4, hbr=1e4),
Expand All @@ -39,6 +43,8 @@
dipole='Dipole', ecog='ECoG', hbo='Oxyhemoglobin',
ref_meg='Reference Magnetometers',
fnirs_cw_amplitude='fNIRS (CW amplitude)',
fnirs_fd_ac_amplitude='fNIRS (FD AC amplitude)',
fnirs_fd_phase='fNIRS (FD phase)',
fnirs_od='fNIRS (OD)', hbr='Deoxyhemoglobin',
gof='Goodness of fit', csd='Current source density'),
mask_params=dict(marker='o',
Expand Down
16 changes: 8 additions & 8 deletions mne/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .io.open import fiff_open
from .io.tag import read_tag
from .io.tree import dir_tree_find
from .io.pick import pick_types, _picks_to_idx
from .io.pick import pick_types, _picks_to_idx, _FNIRS_CH_TYPES_SPLIT
from .io.meas_info import read_meas_info, write_meas_info
from .io.proj import ProjMixin
from .io.write import (start_file, start_block, end_file, end_block,
Expand Down Expand Up @@ -392,9 +392,9 @@ def animate_topomap(self, ch_type=None, times=None, frame_rate=None,
----------
ch_type : str | None
Channel type to plot. Accepted data types: 'mag', 'grad', 'eeg',
'hbo', 'hbr', 'fnirs_od, and 'fnirs_cw_amplitude'.
If None, first available channel type from ('mag', 'grad', 'eeg',
'hbo', 'hbr', 'fnirs_od, 'fnirs_cw_amplitude') is used.
'hbo', 'hbr', 'fnirs_cw_amplitude',
'fnirs_fd_ac_amplitude', 'fnirs_fd_phase', and 'fnirs_od'.
If None, first available channel type from the above list is used.
Defaults to None.
times : array of float | None
The time points to plot. If None, 10 evenly spaced samples are
Expand Down Expand Up @@ -521,7 +521,7 @@ def get_peak(self, ch_type=None, tmin=None, tmax=None,

Parameters
----------
ch_type : 'mag', 'grad', 'eeg', 'seeg', 'ecog', 'hbo', hbr', 'misc', None
ch_type : str | None
The channel type to use. Defaults to None. If more than one sensor
Type is present in the data the channel type has to be explicitly
set.
Expand Down Expand Up @@ -558,8 +558,8 @@ def get_peak(self, ch_type=None, tmin=None, tmax=None,

.. versionadded:: 0.16
""" # noqa: E501
supported = ('mag', 'grad', 'eeg', 'seeg', 'ecog', 'misc', 'hbo',
'hbr', 'None', 'fnirs_cw_amplitude', 'fnirs_od')
supported = ('mag', 'grad', 'eeg', 'seeg', 'ecog', 'misc',
'None') + _FNIRS_CH_TYPES_SPLIT
types_used = self.get_channel_types(unique=True, only_data_chs=True)

_check_option('ch_type', str(ch_type), supported)
Expand Down Expand Up @@ -592,7 +592,7 @@ def get_peak(self, ch_type=None, tmin=None, tmax=None,
seeg = True
elif ch_type == 'ecog':
ecog = True
elif ch_type in ('hbo', 'hbr', 'fnirs_cw_amplitude', 'fnirs_od'):
elif ch_type in _FNIRS_CH_TYPES_SPLIT:
fnirs = ch_type

if ch_type is not None:
Expand Down
2 changes: 2 additions & 0 deletions mne/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from . import kit
from . import nicolet
from . import nirx
from . import boxy
from . import persyst
from . import eeglab
from . import pick
Expand All @@ -47,6 +48,7 @@
from .eeglab import read_raw_eeglab, read_epochs_eeglab
from .eximia import read_raw_eximia
from .nirx import read_raw_nirx
from .boxy import read_raw_boxy
from .snirf import read_raw_snirf
from .persyst import read_raw_persyst
from .fieldtrip import (read_raw_fieldtrip, read_epochs_fieldtrip,
Expand Down
7 changes: 7 additions & 0 deletions mne/io/boxy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""fNIRS module for conversion to FIF."""

# Authors: Kyle Mathewson, Jonathan Kuziek <kuziek@ualberta.ca>
#
# License: BSD (3-clause)

from .boxy import read_raw_boxy
Loading