Skip to content

Read_raw_nirx#14055

Open
emma-bailey wants to merge 10 commits into
mne-tools:mainfrom
emma-bailey:read_raw_nirx
Open

Read_raw_nirx#14055
emma-bailey wants to merge 10 commits into
mne-tools:mainfrom
emma-bailey:read_raw_nirx

Conversation

@emma-bailey

Copy link
Copy Markdown
Contributor

What does this implement/fix?

Updating read_raw_nirx to accept the newer data format output from Aurora recording software. The main changes relate to the change from a *probeInfo.mat to a *probeInfo.json to store optode locations. Additional changes relate to the fact a .tri file was prevoiusly mandatory for Aurora data though this may not always be present i.e. for a resting-state fNIRS recording.

I implemented the code and tested the changes locally myself, Claude Sonnet 4.6 wrote the official test in test_nirx.py, prompted to base this on the previous test implemented for aurora_2021_9_6.

@larsoner larsoner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Style tests are failing, can you merge main into your branch? I recently made some style / typing fixes. Happy to help if you want!

Comment thread doc/doc/authors.txt Outdated
@@ -0,0 +1,31 @@
# OptiPNG version 0.7.8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This all looks like it shouldn't be in this PR?

@emma-bailey emma-bailey Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Based on the docs I found here which stated:

On Windows, unzip optipng.exe from the [optipng for Windows (http://prdownloads.sourceforge.net/optipng/optipng-0.7.8-win64.zip?download) archive into the doc/ folder. This step is optional for Windows users.

I just unzipped and this file was created. I can still remove it if you like!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I synced main to my fork now ✅

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes please remove this directory (from the PR, you can keep your local copy if you want), these files shouldn't be committed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done ✅

@larsoner

Copy link
Copy Markdown
Member

Can you add a doc/changes/dev/14055.newfeature.rst mentioning support for newer devices?

The style CI is unhappy: https://github.com/mne-tools/mne-python/actions/runs/29415131134/job/87351243860?pr=14055

CircleCI don't worry about, I can get that to run once those are addressed ☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants