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

Dredge lfp and dredge ap #3062

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

samuelgarcia
Copy link
Member

@samuelgarcia samuelgarcia commented Jun 21, 2024

@cwindolf

Here the initial port of dredgelib into spikeinterface.
This come with some small refactoring in spikeinterface and folder reorganization.

We should be able to do:

estimate_motion(method="drege_lfp")
estimate_motion(method="drege_ap")

The come a a quite big refactoring to split methods and into files and many variable names change to align with dredge in spikeinterface and sometimes the align dredge with spikeinterface.
The entire dredge is in one unique file dredge.py

@@ -49,6 +47,12 @@ def setup_module(tmp_path_factory):
return recording, sorting, cache_folder


@pytest.fixture(scope="module", name="setup_module")
def setup_module_fixture(tmp_path_factory):
Copy link
Member

Choose a reason for hiding this comment

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

You can use the create_cache_folder global fixture ;)

@alejoe91 alejoe91 added the motion correction Questions related to motion correction label Jun 22, 2024
Move method into separated files.
Change, refactor (and rename some) kwargs from common to specific methos.
Add dredge_lfp class.
@samuelgarcia
Copy link
Member Author

@cwindolf the last commit is a quite big refactoring in estimate motion to integrate the 'dredge_lfp' method.
Maybe you would like have a look.

@samuelgarcia
Copy link
Member Author

samuelgarcia commented Jun 26, 2024

@cwindolf I could not resists in porting also the dredge_ap and make a class.
This is not working yet because we need to fix the histogram2d that mimic all imrovements.

@samuelgarcia samuelgarcia changed the title Dredge lfp Dredge lfp and dredge ap Jun 26, 2024
@alejoe91 alejoe91 added this to the 0.101.0 milestone Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
motion correction Questions related to motion correction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants