diff --git a/src/spyglass/lfp/v1/lfp_artifact.py b/src/spyglass/lfp/v1/lfp_artifact.py index 1f47a0884..70b8f2f2b 100644 --- a/src/spyglass/lfp/v1/lfp_artifact.py +++ b/src/spyglass/lfp/v1/lfp_artifact.py @@ -1,3 +1,5 @@ +import uuid + import datajoint as dj import numpy as np @@ -183,15 +185,7 @@ def make(self, key): dict( artifact_times=artifact_times, artifact_removed_valid_times=artifact_removed_valid_times, - # name for no-artifact time name using recording id - artifact_removed_interval_list_name="_".join( - [ - key["nwb_file_name"], - key["target_interval_list_name"], - "LFP", - key["artifact_params_name"], - ] - ), + artifact_removed_interval_list_name=uuid.uuid4(), ) ) @@ -199,11 +193,11 @@ def make(self, key): "nwb_file_name": key["nwb_file_name"], "interval_list_name": key["artifact_removed_interval_list_name"], "valid_times": key["artifact_removed_valid_times"], - "pipeline": "lfp_artifact", + "pipeline": self.full_table_name, } - LFPArtifactRemovedIntervalList.insert1(key, replace=True) - IntervalList.insert1(interval_key, replace=True) + LFPArtifactRemovedIntervalList.insert1(key) + IntervalList.insert1(interval_key) self.insert1(key)