Skip to content

ica.get_sources has strange ch_names and ch_type #3889

@ppasler

Description

@ppasler

After calling ica.get_source() with a Raw object I noticed that

  • the ch_names "ICA 001" start by 1 instead of 0 (which is not consistent)
  • I couldn't plot it right, as the ch_type for scaling is not clear (it seems to be misc, but I couldn't find any documentation about it)

I would suggest to let the ICAs start by 0 everywhere.
Remove the +1 here: https://github.com/mne-tools/mne-python/blob/master/mne/preprocessing/ica.py#L798

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions