-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
from . import vis | ||
from .config import * | ||
from .localize.localize_util import (localize_amplitude_vectors, localize_hdf5, | ||
localize_waveforms) | ||
from .main import (DARTsortSorting, ObjectiveUpdateTemplateMatchingPeeler, | ||
SubtractionPeeler, check_recording, cluster, dartsort, | ||
match, run_peeler, split_merge, subtract) | ||
from .main import (ObjectiveUpdateTemplateMatchingPeeler, SubtractionPeeler, | ||
check_recording, cluster, dartsort, match, run_peeler, | ||
split_merge, subtract) | ||
from .peel.grab import GrabAndFeaturize | ||
from .templates import TemplateData | ||
from .transform import WaveformPipeline | ||
from .util.data_util import DARTsortSorting | ||
from .util.waveform_util import make_channel_index |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
try: | ||
from dredge import dredge_ap | ||
have_dredge = True | ||
except ImportError: | ||
have_dredge = False | ||
pass | ||
|
||
|
||
def estimate_motion(recording, sorting, motion_estimation_config=None, localizations_dataset_name="point_source_localizations"): | ||
if not motion_estimation_config.do_motion_estimation: | ||
return None | ||
|
||
if not have_dredge: | ||
raise ValueError("Please install DREDge to use motion estimation.") |
This file contains 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 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