Skip to content

Commit

Permalink
Update src/spyglass/spikesorting/v1/artifact.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Brozdowski <[email protected]>
  • Loading branch information
khl02007 and CBroz1 authored Oct 9, 2023
1 parent 00414ff commit 03c84cb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/spyglass/spikesorting/v1/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,14 @@ def make(self, key):

# INSERT
# - into IntervalList
tmp_key = {}
tmp_key["nwb_file_name"] = key["nwb_file_name"]
tmp_key["interval_list_name"] = key["artifact_id"]
tmp_key["valid_times"] = artifact_removed_valid_times
IntervalList.insert1(tmp_key, skip_duplicates=True)
IntervalList.insert1(
dict(
nwb_file_name=key["nwb_file_name"],
interval_list_name=key["artifact_id"],
valid_times=artifact_removed_valid_times,
),
skip_duplicates=True,
)
# - into ArtifactRemovedInterval
self.insert1(key)

Expand Down

0 comments on commit 03c84cb

Please sign in to comment.