-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recorders with non voltage (non standard) channels and slicing channels #782
Comments
@h-mayorquin you can extend the |
I think I would go for an annotation like this |
@alejoe91 we should probably move this warning to |
what if you slice ? I think in base it is OK. |
Hi suggest adding this to the
This would have the same effect without "polluting" the base with NEO related stuff (the BaseRecording doesn't even know neo exists!!!) |
ok for me. |
except the cascade of if that could be done in one line with and |
???? |
All right, so we should:
Please say if you agree with both and I will take care of it, |
@h-mayorquin please go ahead! |
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
However, as far as I know this attribute (
self.has_non_standards_units
) is not copied when we slice the channels withrecorder.slice_channel
which indicates problems. I think that what would happen right now is that the attributeNeoRawIOClass
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
The text was updated successfully, but these errors were encountered: