-
Notifications
You must be signed in to change notification settings - Fork 234
Add BaseSpikeVectorExtension
#4189
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
Merged
+170
−308
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
dadc15d
Add BaseSpikeVectorExtension
alejoe91 cf95231
Merge branch 'main' into sv-metric
alejoe91 993d862
Add full_pca_projections extension spike-vector based
alejoe91 67559a2
Merge branch 'main' of github.com:SpikeInterface/spikeinterface into …
alejoe91 2f23b4e
Remove isi init
alejoe91 abf4ab8
Merge branch 'main' of github.com:SpikeInterface/spikeinterface into …
alejoe91 cd0e01a
Merge branch 'sv-metric' of github.com:alejoe91/spikeinterface into s…
alejoe91 eecd801
Revert full_pca changes
alejoe91 5e2d232
Remove init from principal_components
alejoe91 341711d
Remove from __init__
alejoe91 0f2ea0e
Add copy arg in get_data
alejoe91 c10705d
Remove full_pca_projections from sortinganalyzer list
alejoe91 47a794a
Merge branch 'main' into sv-metric
samuelgarcia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -317,6 +317,7 @@ def __init__( | |
| self.ms_after = ms_after | ||
| self.nbefore = int(ms_before * recording.get_sampling_frequency() / 1000.0) | ||
| self.nafter = int(ms_after * recording.get_sampling_frequency() / 1000.0) | ||
| self.neighbours_mask = None | ||
|
|
||
|
|
||
| class ExtractDenseWaveforms(WaveformsNode): | ||
|
|
@@ -356,8 +357,6 @@ def __init__( | |
| ms_after=ms_after, | ||
| return_output=return_output, | ||
| ) | ||
| # this is a bad hack to differentiate in the child if the parents is dense or not. | ||
| self.neighbours_mask = None | ||
|
|
||
| def get_trace_margin(self): | ||
| return max(self.nbefore, self.nafter) | ||
|
|
@@ -573,7 +572,7 @@ def run_node_pipeline( | |
| gather_mode : "memory" | "npy" | ||
| How to gather the output of the nodes. | ||
| gather_kwargs : dict | ||
| OPtions to control the "gather engine". See GatherToMemory or GatherToNpy. | ||
| Options to control the "gather engine". See GatherToMemory or GatherToNpy. | ||
| squeeze_output : bool, default True | ||
| If only one output node then squeeze the tuple | ||
| folder : str | Path | None | ||
|
|
@@ -784,7 +783,7 @@ def finalize_buffers(self, squeeze_output=False): | |
|
|
||
| class GatherToNpy: | ||
| """ | ||
| Gather output of nodes into npy file and then open then as memmap. | ||
| Gather output of nodes into npy file and then open them as memmap. | ||
|
|
||
|
|
||
| The trick is: | ||
|
|
@@ -891,6 +890,6 @@ def finalize_buffers(self, squeeze_output=False): | |
| return np.load(filename, mmap_mode="r") | ||
|
|
||
|
|
||
| class GatherToHdf5: | ||
| class GatherToZarr: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. amazing! |
||
| pass | ||
| # Fot me (sam) this is not necessary unless someone realy really want to use | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment was good to keep I think