Skip to content

Conversation

@rob-luke
Copy link
Member

@rob-luke rob-luke commented May 6, 2021

Reference issue

Now that users can create and modify their own fnirs data structures (#9141) this adds more checks that the data structure is correct. Follows #9184 #9185

What does this implement/fix?

fNIRS channels come in pairs (either multiple wavelengths or chromaphore). If one of the pairs is set to bad then they both should be (see similar discussion about saturation here: #9348 (comment)). An internal function already existed to check that the bids are spread correctly across pairs. Here I just add another usage of this function.

I also modify these bad checking/spreading functions to use info rather than raw. As the checking other nirs checking functions now operate on info as suggested by @HanBnrd.

@HanBnrd
Copy link
Contributor

HanBnrd commented May 6, 2021

Awesome, thanks @rob-luke 🙂

@rob-luke rob-luke changed the title WIP: Add more checks to ensure fNIRS bads are set correctly for optode pairs MRG: Add more checks to ensure fNIRS bads are set correctly for optode pairs May 11, 2021
@rob-luke
Copy link
Member Author

@agramfort @larsoner could you please review

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

@larsoner merge if happy

@larsoner larsoner merged commit 3149819 into mne-tools:main May 11, 2021
@larsoner
Copy link
Member

Thanks @rob-luke

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.

4 participants