Skip to content

Commit

Permalink
insert class contents
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Feb 2, 2024
1 parent a2f5c83 commit dc8c523
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/spyglass/mua/v1/mua.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ class MuaEventsParameters(SpyglassMixin, dj.Manual):
----
mua_param_dict : BLOB # dictionary of parameters
"""
contents = [
{
"mua_param_name": "default",
"mua_param_dict": {
"minimum_duration": 0.015, # seconds
"zscore_threshold": 2.0,
"close_event_threshold": 0.0, # seconds
"speed_threshold": 4.0, # cm/s
},
},
]

def insert_default(self):
@classmethod
def insert_default(cls):
"""Insert the default parameter set"""
self.insert1(
{
"mua_param_name": "default",
"mua_param_dict": {
"minimum_duration": 0.015, # seconds
"zscore_threshold": 2.0,
"close_event_threshold": 0.0, # seconds
"speed_threshold": 4.0, # cm/s
},
},
skip_duplicates=True,
)
cls.insert(cls.contents, skip_duplicates=True)


@schema
Expand Down

0 comments on commit dc8c523

Please sign in to comment.