Reorder inheritance of RemoveBadChannelsRecording and the arguments.
@@ -40,8 +40,8 @@ class RemoveBadChannelsRecording(BasePreprocessor, ChannelSliceRecording):
channel_ids = parents_chan_ids[keep_inds]
self._parent_channel_indices = recording.ids_to_indices(channel_ids)
+ BasePreprocessor.__init__(self, recording)
ChannelSliceRecording.__init__(self, recording, channel_ids=channel_ids)
- BasePreprocessor.__init__(self, self)
self._kwargs = dict(recording=recording.to_dict(), bad_threshold=bad_threshold)
self._kwargs.update(random_chunk_kwargs)
@@ -51,4 +51,3 @@ class RemoveBadChannelsRecording(BasePreprocessor, ChannelSliceRecording):
def remove_bad_channels(*args, **kwargs):
return RemoveBadChannelsRecording(*args, **kwargs)
remove_bad_channels.__doc__ = RemoveBadChannelsRecording.__doc__
-
