neuromodulation / py_neuromodulation

Real-time analysis of intracranial neurophysiology recordings.
https://neuromodulation.github.io/py_neuromodulation/
MIT License
47 stars 11 forks source link

Fixed use of non-target/decoding channel in the combined setting #380

Closed alessiaca closed 1 week ago

alessiaca commented 1 week ago

For visualization purposes I included an extra channel in the feature array, which was neither a label nor a used channel. However, it was still included in the combined data array and thus, for decoding. The proposed change makes sure that only those channels that are also present in the used_ch list (and not all apart from the label and the time) are included in the combined dataset.

timonmerk commented 1 week ago

Thanks a lot @alessiaca!