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

[FIX] Bug loading projections in CSD h5 files. #11072

Merged
merged 4 commits into from Aug 23, 2022

Conversation

cgohil8
Copy link
Contributor

@cgohil8 cgohil8 commented Aug 23, 2022

Fixes #10757.

Fixes the mne.time_frequency.csd.CrossSpectralDensity returned by mne.time_frequency.read_csd. Previously the CrossSpectralDensity object's projs attribute was a list of dict now it's a list of mne.proj.Projection.

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

LGTM +1 for merge after doc/changes/latest.inc update :)

doc/changes/latest.inc Outdated Show resolved Hide resolved
Co-authored-by: Daniel McCloy <dan@mccloy.info>
@larsoner larsoner enabled auto-merge (squash) August 23, 2022 09:14
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

Marked for auto-merge, thanks in advance @cgohil8 !

@larsoner larsoner disabled auto-merge August 23, 2022 09:59
@drammock
Copy link
Member

 Error: ./mne/time_frequency/tests/test_csd.py:34:80: E501 line too long (88 > 79 characters)
Error: ./mne/time_frequency/tests/test_csd.py:38:80: E501 line too long (85 > 79 characters)

check this locally in the terminal from root of repo with make flake

@cgohil8
Copy link
Contributor Author

cgohil8 commented Aug 23, 2022

 Error: ./mne/time_frequency/tests/test_csd.py:34:80: E501 line too long (88 > 79 characters)
Error: ./mne/time_frequency/tests/test_csd.py:38:80: E501 line too long (85 > 79 characters)

check this locally in the terminal from root of repo with make flake

Yep, just saw this. I overwrote the commit. Should hopefully be fine now.

@larsoner
Copy link
Member

Marking for auto-merge, thanks in advance @cgohil8 !

@larsoner larsoner enabled auto-merge (squash) August 23, 2022 11:11
@larsoner larsoner merged commit ec85fe8 into mne-tools:main Aug 23, 2022
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.

After loading from file, CrossSpectralDensity.projs are a list of dicts rather than a list of Projections
4 participants