File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/spyglass/utils/mixins Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ DecodingParameters().alter()
5757 - Add custom/dynamic ` AnalysisNwbfile ` creation #1435
5858 - Allow nullable ` DataAcquisitionDevice ` foreign keys #1455
5959 - Improve error transparency on duplicate ` Electrode ` ids #1454
60+ - Remove pre-existing ` Units ` from created analysis nwb files #1453
6061 - Allow multiple VideoFile entries during ingestion #1462
6162- Decoding
6263 - Ensure results directory is created if it doesn't exist #1362
Original file line number Diff line number Diff line change @@ -209,6 +209,10 @@ def create(
209209 if isinstance (nwb_object , pynwb .core .LabelledDict ):
210210 for module in list (nwb_object .keys ()):
211211 nwb_object .pop (module )
212+ # Remove units to avoid conflict with spyglass-managed spikesorting
213+ if field == "units" :
214+ nwbf ._remove_child (nwb_object )
215+ nwbf .fields [field ] = None
212216
213217 # pop off optogenetic_epochs if it exists
214218 if (
You can’t perform that action at this time.
0 commit comments