Skip to content

IPPM: Is hemisphere merging done correctly? #438

@caiw

Description

@caiw

Hemisphere merging code currently looks like this:

for func, spike in spikes.items():
    extracted_spikes = spike.right_best_pairings if self._hemi == HEMI_RIGHT else spike.left_best_pairings
    if self._should_merge_hemis:
        other_hemi_spikes = spike.left_best_pairings if self._hemi == HEMI_LEFT else spike.right_best_pairings
        extracted_spikes.extend(other_hemi_spikes)

Shouldn't it be

#                                                                         v
        other_hemi_spikes = spike.left_best_pairings if self._hemi == HEMI_RIGHT else spike.right_best_pairings

since it's selecting the other hemisphere's pairings?

I've tried making this change, but then some tests fail (see #439) :/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions