Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add pdf_fname to RawBTi._raw_extras #11851

Merged
merged 3 commits into from
Aug 1, 2023
Merged

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Aug 1, 2023

Closes #11850

A private change just for the use of MNE-BIDS. Ideally we'd find some public way to do this but in the meantime the addition to the test with a comment saying MNE-BIDS needs the private attr is hopefully okay.

Split into two commits, the first modernizes the BTi tests using pytest.mark.parametrize and the second actually fixes #11850. In theory we could rebase+merge this then add to the revs-ignore but it might not be worth it. I'll mark what I actually changed in the test...

Comment on lines +190 to +192
# MNE-BIDS needs these
for key in ("pdf_fname", "config_fname", "head_shape_fname"):
assert os.path.isfile(ra._raw_extras[0][key])
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only real addition to the tests

@larsoner larsoner added this to the 1.5 milestone Aug 1, 2023
@larsoner
Copy link
Member Author

larsoner commented Aug 1, 2023

@sappelhoff feel free to review/mark for merge-when-green!

Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot @larsoner!

I'll make a PR to mne-bids soon :-)

@sappelhoff sappelhoff merged commit 2a39a3a into mne-tools:main Aug 1, 2023
@larsoner larsoner deleted the bti branch August 1, 2023 20:19
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
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.

Make config_fname available as _raw_extras[0] data in BTI reader
2 participants