-
Notifications
You must be signed in to change notification settings - Fork 49
Add populator functions for ease of use #1279
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
base: master
Are you sure you want to change the base?
Conversation
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.
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/spyglass/linearization/v1/pipeline.py:92
- Ensure that the custom method 'fetch_nwb_file_name()' returns a list of dicts containing the 'nwb_file_name' key. If the return format differs, update the subsequent code to correctly extract the NWB file name.
pos_entry = (PositionOutput & pos_key).fetch_nwb_file_name()
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.
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
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.
Pull Request Overview
This PR introduces new high‐level populator functions to simplify the execution of multiple processing pipelines (position, DLC training/setup, MUA, linearization, decoding, and behavior) while removing some renamed or obsolete pyscripts/notebooks. The changes include updates to function signatures and docstrings for clarity, as well as the removal of unused imports and outdated scripts.
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/spyglass/spikesorting/v1/recording.py | Updated the insert_selection method signature with an explicit return type and corrected a minor typo in the comments. |
src/spyglass/spikesorting/spikesorting_merge.py | Removed an unused import. |
src/spyglass/position/v1/pipeline_trodes.py | Added a populator function for the Trodes Position V1 pipeline. |
src/spyglass/position/v1/pipeline_dlc_training.py | Added a new function to run DLC Model Training V1. |
src/spyglass/position/v1/pipeline_dlc_setup.py | Introduced a new populator function for setting up DLC projects with frame extraction. |
src/spyglass/mua/v1/pipeline.py | Added a populator function for the Multi-Unit Activity (MUA) V1 pipeline. |
src/spyglass/linearization/v1/pipeline.py | Added a new populator function for the Position Linearization V1 pipeline. |
src/spyglass/decoding/v1/pipeline_waveform_feature_extraction.py | Added a pipeline for Waveform Feature Extraction V1. |
src/spyglass/decoding/v1/pipeline_sorted.py | Added a pipeline for Sorted Spikes Decoding V1. |
src/spyglass/decoding/v1/pipeline_clusterless.py | Added a pipeline for Clusterless Decoding V1. |
src/spyglass/behavior/v1/pipeline.py | Added a new populator function for the MoSeq Behavior V1 pipeline. |
notebooks/py_scripts/51_MUA_Detection.py, 43_Decoding_SortedSpikes.py, 41_Extracting_Clusterless_Waveform_Features.py | Deprecated/not needed notebooks have been removed. |
Description
Like the spikesorting.v0.spikesorting_populator, this attempts to wrap pipelines with many tables into one function for ease of use. I try to utilize any multiprocessing for parallel processing of datasets.
Also deleted some pyscripts that were renamed.
Still need to test this.
Fixes #891
Fixes #529
Checklist:
CITATION.cff
alter
snippet for release notes.CHANGELOG.md
with PR number and description.