artifact.py
ArtifactDetectionSelection
¶
Bases: SpyglassMixin
, Manual
Source code in src/spyglass/spikesorting/v1/artifact.py
insert_selection(key)
classmethod
¶
Insert a row into ArtifactDetectionSelection with an automatically generated unique artifact ID as the sole primary key.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
dict
|
primary key of SpikeSortingRecording and ArtifactDetectionParameters |
required |
Returns:
Name | Type | Description |
---|---|---|
artifact_id |
str
|
the unique artifact ID serving as primary key for ArtifactDetectionSelection |
Source code in src/spyglass/spikesorting/v1/artifact.py
merge_intervals(intervals)
¶
Takes a list of intervals each of which is [start_time, stop_time] and takes union over intervals that are intersecting
Parameters:
Name | Type | Description | Default |
---|---|---|---|
intervals |
_type_
|
description |
required |
Returns:
Type | Description |
---|---|
_type_
|
description |