-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
NEOProblem related to NEO IOProblem related to NEO IO
Description
In #761 we move the warnings of non standard units to get_traces
. We achieved this by introducing an extra attribute:
spikeinterface/spikeinterface/core/baserecording.py
Lines 109 to 116 in 486bc67
if return_scaled: | |
if hasattr(self, "NeoRawIOClass"): | |
if self.has_non_standard_units: | |
message = ( | |
f'This extractor based on neo.{self.NeoRawIOClass} has channels with units not in (V, mV, uV)' | |
) | |
warnings.warn(message) | |
However, as far as I know this attribute (self.has_non_standards_units
) is not copied when we slice the channels with recorder.slice_channel
which indicates problems. I think that what would happen right now is that the attribute NeoRawIOClass
is not copied either so the sliced recorder with non voltage units will never raise the warning.
Maybe we should handle this with annotations as you already have the machinery in those methods to copy that?
Context: #758, #761 and NeuralEnsemble/python-neo#1133
Metadata
Metadata
Assignees
Labels
NEOProblem related to NEO IOProblem related to NEO IO