Skip to content

Conversation

@m-beau
Copy link

@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

"amplitude_scalings",
), "Invalid amplitude_extension. It can be either 'spike_amplitudes' or 'amplitude_scalings'"
sorting = sorting_analyzer.sorting
total_duration = sorting_analyzer.get_total_duration()
Copy link
Member

Choose a reason for hiding this comment

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

Hello - do we need to be careful about stuff like this? Here the total_duration of the entire recording. It's used later to compute a firing rate, and this firing rate is the total num spikes divided by total duration, rather than num-spike-in-periods/duration-of-periods.

Copy link
Member

Choose a reason for hiding this comment

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

In this case is the num spikes in period. So I think this is correct, but I'll double check carefully!

Copy link
Member

Choose a reason for hiding this comment

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

In this case is the num spikes in period. So I think this is correct, but I'll double check carefully!

Copy link
Member

Choose a reason for hiding this comment

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

I don't understand. In this case, it should be num spike in the period? Then I think the code is incorrect: Num spikes are computed using count_num_spikes_per_unit, which is computed using the full recording time.

Copy link
Member

Choose a reason for hiding this comment

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

Ah it's the CV metrics! you are right, I'll take a closer look and push some fixes

@alejoe91 alejoe91 changed the title Good times extension Valid unit periods extension Jan 12, 2026
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