Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More WaveformExtensions #778

Merged
merged 6 commits into from
Jul 4, 2022
Merged

Conversation

alejoe91
Copy link
Member

@alejoe91 alejoe91 commented Jul 2, 2022

Implemented as WaveformExtensions:

  • ISI histograms
  • CrossCorrelograms
  • TemplateSimilarity
  • UnitLocation

Comment on lines +86 to +92
# take care of keys first
if isinstance(k, np.int64):
del dc[k]
dc[int(k)] = v
if isinstance(k, np.float64):
del dc[k]
dc[float(k)] = v
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed to avoid keys to be non serializable (e.g. for toy_example, where channel ids and unit ids are int64). The use case is for saving the sparsity dictionary as params

@alejoe91 alejoe91 marked this pull request as ready for review July 2, 2022 17:07
@samuelgarcia samuelgarcia merged commit b0cca91 into SpikeInterface:master Jul 4, 2022
@alejoe91 alejoe91 deleted the extensions branch July 12, 2022 09:44
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.

2 participants