Skip to content

Commit

Permalink
Fixed use of non-target/decoding channel in the combined setting (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiaca authored Nov 13, 2024
1 parent 206a455 commit 6a3b916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_neuromodulation/analysis/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def set_data(self, features):
self.feature_names = [
col
for col in self.features.columns
if not (("time" in col) or (self.label_name in col))
if any(col.startswith(used_ch) for used_ch in self.used_chs)
]
self.data = np.nan_to_num(np.array(self.features[self.feature_names]))

Expand Down

0 comments on commit 6a3b916

Please sign in to comment.