Skip to content

Commit ba981ee

Browse files
authored
Merge pull request #439 from smoia/fix/chselname
Fix channel selection to not remove "time channel"
2 parents 753ac4e + c6ae189 commit ba981ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phys2bids/phys2bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def phys2bids(filename, info=False, indir='.', outdir='.', heur_file=None,
249249
# The next few lines remove the undesired channels from phys_in.
250250
if chsel:
251251
LGR.info('Dropping unselected channels')
252-
for i in reversed(range(0, phys_in.ch_amount)):
252+
for i in range(phys_in.ch_amount - 1, 0, -1):
253253
if i not in chsel:
254254
phys_in.delete_at_index(i)
255255

0 commit comments

Comments
 (0)