-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial add of nirx reader files * Initial add of test files * Add test call to nirx reader. Ensure required files are present * Add reader for header file * Add _read_segment_file for nirx * Ensure nirx files adhere to style guidlines * Check nirx file format version is supported * Extract wavelength information from file. Tidy info variable names * Add `subject_info` field based on .inf file * Point tests to newly added nirx file * Fix assert bug raised by larsoner * Add new lines where indicated by larsoner #6674 (review) * Add read_raw_nirx to python_reference.rst * larsoner suffestion accepted. Update mne/io/nirx/nirx.py Co-Authored-By: Eric Larson <larson.eric.d@gmail.com> * larsoner suffestion accepted. Update mne/io/nirx/nirx.py Co-Authored-By: Eric Larson <larson.eric.d@gmail.com> * larsoner suffestion accepted. Update mne/io/nirx/nirx.py Co-Authored-By: Eric Larson <larson.eric.d@gmail.com> * larsoner suffestion accepted. Update mne/io/nirx/nirx.py Co-Authored-By: Eric Larson <larson.eric.d@gmail.com> * Nest pandas import, use meaningful channel names * Import FIFF. Change HDR reader. Couldnt get one liner from larsoner to work. Split to two lines. Will come back to this once CI is green * Add montage reader. Pydocstyle fix * Fix typo in comments * Tell nirx tests that pandas is required * Fix nirx reader typo * Add RawNIRX to numpydoc_xref_ignore * Fix nirx reading bug that dropped first sample. Check names * Ensure channel interleaving matches channel names. Tested results match MATLAB by checking std of channels is same in both programs * Store nirx channel, source, and detector locations * Fixed position bug for nirx channels * Remove code repetition in nirx reader * Dont import configparser as cp in nirx reader * Proper check and assert for nirx file format * Scale locations to mm. Add test for S-D distances against NIRSite values * Add function to determine nirx short channels * Extract nirx triggers. Commented out until I read where events live * Add annotations to nirx reader * Tidy comments and remove unused code * Add two new fNIRS types `fnirs_raw` and `fnirs_od` fNIRS raw is for measurements directly from machine (V) fNIRS od is for measurements converted to optical density (unitless) Then you convert to hbo/hbr * Specify types for arrays in nirx reader * Changes required to raw.plot nirx files * Use fNIRS channel type, create three fnirs coil types #6674 (comment) * Add fnirs chroma channel * Ensure fnirs_raw type works in picks * Fix picks for other added types * Add new FIFF to tag ignore, flake fixes * Add fnirs to cov.py * Add od and chroma to plotting * Allow raw.plot_psd() for nirx files * Remove chroma based on discussion with larsoner #6674 (comment) * Use new fiff release * Remove old comments * Add documentation for NIRS * Add tests for picking fnirs_raw and fnirs_od * Fix type on fNIRS module * Add nirx io tutorial * Add nirx reader to changes * Update tutorials/io/plot_30_reading_fnirs_data.py Co-Authored-By: Alexandre Gramfort <alexandre.gramfort@m4x.org> * ENH: Use NumPy instead of Pandas
- Loading branch information
Showing
22 changed files
with
518 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,3 +260,6 @@ | |
|
||
.. _Abram Hindle: http://softwareprocess.es | ||
|
||
.. _Robert Luke: https://github.com/rob-luke | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""fNIRS module for conversion to FIF.""" | ||
|
||
# Author: Robert Luke <mail@robertluke.net> | ||
# | ||
# License: BSD (3-clause) | ||
|
||
from .nirx import read_raw_nirx |
Oops, something went wrong.