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

Load pca from waveform extractor and waveform from Zarr #2613

Merged

Conversation

alejoe91
Copy link
Member

@samuelgarcia

Implemented the missing pieces for bakward compatibility. Added 2 very small folders (< 1MB) in total. for testing. Ok?

@alejoe91 alejoe91 added the core Changes to core module label Mar 21, 2024
@alejoe91
Copy link
Member Author

@samuelgarcia this needs to be squashed and merged!

with open(params_file, "r") as f:
params = json.load(f)
n_components = params["n_components"]
n_channels = len(rec_attributes["channel_ids"])
Copy link
Member

Choose a reason for hiding this comment

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

Can you check that in the old format it was sparse or not ?

Copy link
Member Author

Choose a reason for hiding this comment

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

even if the old format is sparse, the components are always saved in "full". Sparsity is only used to skip channels during PCA compute and project

@alejoe91
Copy link
Member Author

@samuelgarcia ready to merge

@samuelgarcia samuelgarcia merged commit f26fb17 into SpikeInterface:main Apr 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants