revert and change to warning
+import warnings
+
import numpy as np
from spikeinterface.core import (BaseRecording, BaseSorting, BaseEvent,
BaseRecordingSegment, BaseSortingSegment, BaseEventSegment)
@@ -64,8 +66,9 @@ class NeoBaseRecordingExtractor(_NeoBaseExtractor, BaseRecording):
units = signal_channels['units']
if not np.all(np.isin(units, ['V', 'Volt', 'mV', 'uV'])):
# check that units are V, mV or uV
- error = f'This extractor based on neo.{self.NeoRawIOClass} have strange units not in (V, mV, uV) {units}'
- print(error)
+ message = f'This extractor based on neo.{self.NeoRawIOClass} have strange units not in (V, mV, uV) {units}'
+ warnings.warn(message)
+
additional_gain = np.ones(units.size, dtype='float')
additional_gain[units == 'V'] = 1e6
additional_gain[units == 'Volt'] = 1e6
