Skip to content

Commit

Permalink
FIX load.cnd(): read_cnd extChan (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkulasingham committed Jul 10, 2022
1 parent 086c1dd commit e81c439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eelbrain/_io/cnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def read_cnd(
if 'extChan' in data['eeg']:
desc = ds.info['extChan'] = data['eeg']['extChan']['description']
extra_data = []
for trial_data in data['eeg']['data']:
for trial_data in data['eeg']['extChan']['data']:
uts = UTS(0, tstep, trial_data.shape[0])
channel = Scalar('channel', range(trial_data.shape[1]))
extra_data.append(NDVar(trial_data, (uts, channel), desc))
Expand Down
1 change: 1 addition & 0 deletions eelbrain/_io/tests/test_cnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ def test_cnd_dilibach():
ds = load.cnd(root / 'dataCND' / 'dataSub1.mat')
assert ds.n_cases == 30
assert ds[0, 'eeg'].shape == (82395, 64)
assert ds[0, 'extChan'].shape == (82395, 2)

0 comments on commit e81c439

Please sign in to comment.