diff --git a/src/neuroconv/datainterfaces/ecephys/baserecordingextractorinterface.py b/src/neuroconv/datainterfaces/ecephys/baserecordingextractorinterface.py index 6d0df14c1..c9df3ba52 100644 --- a/src/neuroconv/datainterfaces/ecephys/baserecordingextractorinterface.py +++ b/src/neuroconv/datainterfaces/ecephys/baserecordingextractorinterface.py @@ -88,7 +88,9 @@ def get_metadata_schema(self) -> dict: def get_metadata(self) -> DeepDict: metadata = super().get_metadata() - channel_groups_array = self.recording_extractor.get_channel_groups() + from ...tools.spikeinterface.spikeinterface import _get_group_name + + channel_groups_array = _get_group_name(recording=self.recording_extractor) unique_channel_groups = set(channel_groups_array) if channel_groups_array is not None else ["ElectrodeGroup"] electrode_metadata = [ dict(name=str(group_id), description="no description", location="unknown", device="DeviceEcephys")