Skip to content

Conversation

@BeiGeJin
Copy link

Reference issue (if any)

Fixes #13057.

What does this implement/fix?

It fixes the bug in ica.get_sources() for concatenated raw object.

There is a bug in the ica._source_as_raw function, here it assigns [self.last_samp] to self._last_samps, however self.last_samp is a property function and it seems that if its wrapped in a list, it won't actually call this function until used later. So I change it to first calculate the values and then put them in the list.

@welcome
Copy link

welcome bot commented Jan 17, 2025

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

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.

Looks like a good start, just a few minor comments!

You'll also need to add a doc/changes/devel/13068.bugfix.rst with a message like

Fixed ICA processing of concatenated raw instances, by :newcontrib:`Firstname Lastname`.

then add your name to doc/changes/names.inc

@BeiGeJin BeiGeJin requested a review from drammock as a code owner January 19, 2025 04:54
@BeiGeJin
Copy link
Author

Looks like a good start, just a few minor comments!

You'll also need to add a doc/changes/devel/13068.bugfix.rst with a message like

Fixed ICA processing of concatenated raw instances, by :newcontrib:`Firstname Lastname`.

then add your name to doc/changes/names.inc

Sure! I've got all these done according to your comments.

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.

ICA get_sources() can't deal with a concatenated raw object

3 participants