diff --git a/notebooks/43_Decoding_SortedSpikes.ipynb b/notebooks/43_Decoding_SortedSpikes.ipynb index 22ac8e41c..74df8c910 100644 --- a/notebooks/43_Decoding_SortedSpikes.ipynb +++ b/notebooks/43_Decoding_SortedSpikes.ipynb @@ -635,7 +635,7 @@ } ], "source": [ - "SortedSpikesGroup.SortGroup & {\n", + "SortedSpikesGroup.Units & {\n", " \"nwb_file_name\": nwb_copy_file_name,\n", " \"sorted_spikes_group_name\": \"test_group\",\n", "}" diff --git a/notebooks/py_scripts/43_Decoding_SortedSpikes.py b/notebooks/py_scripts/43_Decoding_SortedSpikes.py index b5ece671d..bbfd8c691 100644 --- a/notebooks/py_scripts/43_Decoding_SortedSpikes.py +++ b/notebooks/py_scripts/43_Decoding_SortedSpikes.py @@ -79,7 +79,7 @@ } # - -SortedSpikesGroup.SortGroup & { +SortedSpikesGroup.Units & { "nwb_file_name": nwb_copy_file_name, "sorted_spikes_group_name": "test_group", } diff --git a/src/spyglass/decoding/v1/sorted_spikes.py b/src/spyglass/decoding/v1/sorted_spikes.py index c188721e1..94c3a0e8e 100644 --- a/src/spyglass/decoding/v1/sorted_spikes.py +++ b/src/spyglass/decoding/v1/sorted_spikes.py @@ -42,7 +42,7 @@ class SortedSpikesGroup(SpyglassMixin, dj.Manual): sorted_spikes_group_name: varchar(80) """ - class SortGroup(SpyglassMixin, dj.Part): + class Units(SpyglassMixin, dj.Part): definition = """ -> SortedSpikesGroup -> SpikeSortingOutput.proj(spikesorting_merge_id='merge_id') @@ -382,7 +382,7 @@ def fetch_linear_position_info(key): def fetch_spike_data(key, filter_by_interval=True): merge_ids = ( ( - SortedSpikesGroup.SortGroup + SortedSpikesGroup.Units & { "nwb_file_name": key["nwb_file_name"], "sorted_spikes_group_name": key["sorted_spikes_group_name"],