Skip to content

Commit

Permalink
motion_estimation() : refactoring party.
Browse files Browse the repository at this point in the history
Move method into separated files.
Change, refactor (and rename some) kwargs from common to specific methos.
Add dredge_lfp class.
  • Loading branch information
samuelgarcia committed Jun 26, 2024
1 parent 13c81ac commit 1ac451c
Show file tree
Hide file tree
Showing 11 changed files with 1,543 additions and 1,406 deletions.
10 changes: 5 additions & 5 deletions src/spikeinterface/preprocessing/motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
margin_um=0.0,
# win_shape="gaussian",
# win_step_um=50.0,
# win_sigma_um=150.0,
# win_scale_um=150.0,
win_shape="gaussian",
win_step_um=100.0,
win_sigma_um=200.0,
win_scale_um=200.0,
histogram_depth_smooth_um=5.0,
histogram_time_smooth_s=None,
pairwise_displacement_method="conv",
Expand Down Expand Up @@ -99,10 +99,10 @@
margin_um=0.0,
# win_shape="gaussian",
# win_step_um=50.0,
# win_sigma_um=150.0,
# win_scale_um=150.0,
win_shape="gaussian",
win_step_um=100.0,
win_sigma_um=200.0,
win_scale_um=200.0,
histogram_depth_smooth_um=5.0,
histogram_time_smooth_s=None,
pairwise_displacement_method="conv",
Expand Down Expand Up @@ -181,7 +181,7 @@
bin_duration_s=2.0,
rigid=False,
win_step_um=50.0,
win_sigma_um=150.0,
win_scale_um=150.0,
margin_um=0,
win_shape="rect",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_benchmark_motion_estimaton(create_cache_folder):
bin_um=5.0,
rigid=False,
win_step_um=50.0,
win_sigma_um=200.0,
win_scale_um=200.0,
),
),
)
Expand Down
1 change: 1 addition & 0 deletions src/spikeinterface/sortingcomponents/motion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
from .motion_estimation import estimate_motion
from .motion_interpolation import (correct_motion_on_peaks, interpolate_motion_on_traces,
InterpolateMotionRecording, interpolate_motion)
from .motion_cleaner import clean_motion_vector
Loading

0 comments on commit 1ac451c

Please sign in to comment.