Skip to content

Conversation

@m-beau
Copy link
Contributor

@m-beau m-beau commented Jan 6, 2026

Implements #4294

  • Add widget

@alejoe91 alejoe91 changed the title good times extension Good times extension Jan 6, 2026
@alejoe91 alejoe91 added the postprocessing Related to postprocessing module label Jan 6, 2026
@alejoe91
Copy link
Member

alejoe91 commented Jan 7, 2026

Depends on #4302


def _merge_extension_data(
self, merge_unit_groups, new_unit_ids, new_sorting_analyzer, censor_ms=None, verbose=False, **job_kwargs
):
Copy link
Member

Choose a reason for hiding this comment

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

You should add here a comment for the strategy of merging period so that the code will be easier to read.

Copy link
Member

Choose a reason for hiding this comment

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

I added a comment in the user defined section. I think it's ok since no-one will ever check the docstring for this

job_name = f"computing false positives and negatives"

# parallel
with ProcessPoolExecutor(
Copy link
Member

Choose a reason for hiding this comment

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

We need to be carrfull with th use of ProcessPoolExecutor.
on window this imply spawn and so datta duplication here this will be sorting + amplitudes duplicated
in case of a spwan

Copy link
Member

Choose a reason for hiding this comment

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

then we should make a base executor. We have the same issue in other extensions...

Copy link
Member

Choose a reason for hiding this comment

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

let's do it in a separate PR

@alejoe91
Copy link
Member

Revised, @samuelgarcia @chrishalcrow can you take a final look?

We can discuss on the merge strategy with user defined periods, but I think union is a good choice (see my comment)

)
)

user_defined_periods = cast_periods_to_unit_period_dtype(user_defined_periods)
Copy link
Member

Choose a reason for hiding this comment

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

niiiice

@samuelgarcia
Copy link
Member

Impressive and complicated PR!
Congratulations.
This is OK on my side.

I push some test for the remapping low level code.

@alejoe91 alejoe91 merged commit 6f0ed09 into SpikeInterface:main Jan 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

postprocessing Related to postprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants