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

removed arg montage from mne.create_info #76

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

FranckPrts
Copy link
Contributor

Remove argument 'montage' from mne.create_info() in hypyp.utils.split()

When running hypyp.utils.split(), python throws the following TypeError:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/var/folders/vv/stc9rswn5c95vxdzpx7z6qqr0000gn/T/ipykernel_72933/3362665754.py in <module>
----> 1 raw_S1, raw_S2 = hypyp.utils.split(raw)

~/opt/anaconda3/lib/python3.8/site-packages/hypyp/utils.py in split(raw_merge)
    233 
    234     # creating info for raws
--> 235     info = mne.create_info(ch, raw_merge.info['sfreq'], ch_types='eeg',
    236                            montage=None, verbose=None)
    237     raw_S1 = mne.io.RawArray(data_S1, info)

TypeError: create_info() got an unexpected keyword argument 'montage'

When verifying the MNE documentation (0.24.1 (current), 0.23.1, 0.22.1, and 0.21.1) for create_info(), no 'montage' argument can be found.

This pull request proposes to remove that argument from the mne.create_info() within hypyp.utils.split().

@deep-introspection deep-introspection merged commit e69730d into ppsp-team:master Dec 16, 2021
@FranckPrts FranckPrts deleted the createinfo_utils branch December 23, 2021 12:13
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