Skip to content

Commit

Permalink
add default ripple parameters for trodes position data
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Mar 19, 2024
1 parent fb68e76 commit 36b388d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/spyglass/ripple/v1/ripple.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,24 @@ def insert_default(self):
{"ripple_param_name": "default", "ripple_param_dict": default_dict},
skip_duplicates=True,
)
default_dict_trodes = {
"speed_name": "speed",
"ripple_detection_algorithm": "Kay_ripple_detector",
"ripple_detection_params": dict(
speed_threshold=4.0, # cm/s
minimum_duration=0.015, # sec
zscore_threshold=2.0, # std
smoothing_sigma=0.004, # sec
close_ripple_threshold=0.0, # sec
),
}
self.insert1(
{
"ripple_param_name": "default_trodes",
"ripple_param_dict": default_dict_trodes,
},
skip_duplicates=True,
)


@schema
Expand Down Expand Up @@ -373,7 +391,6 @@ def create_figurl(
lfp_offset=1,
lfp_channel_ind=None,
):

ripple_times = self.fetch1_dataframe()

def _add_ripple_times(
Expand Down

0 comments on commit 36b388d

Please sign in to comment.