Skip to content

Commit aa96138

Browse files
committed
default to always keep chanlocs from raw data even with bidschanlocs on
1 parent 0fc38a6 commit aa96138

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bids_importchanlocs.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
function [EEG, channelData, elecData] = bids_importchanlocs(EEG, channelFile, elecFile)
2626
channelData = bids_loadfile(channelFile, '');
2727
elecData = bids_loadfile(elecFile, '');
28-
chanlocs = [];
28+
if isfield(EEG, 'chanlocs')
29+
chanlocs = EEG.chanlocs;
30+
else
31+
chanlocs = [];
32+
end
2933
if isempty(channelData) && isempty(elecData)
3034
return
3135
end

bids_writechanfile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
%
1919
% Authors: Dung Truong, Arnaud Delorme, 2022
2020

21-
function eeg_writechanfile(EEG, fileOut)
21+
function bids_writechanfile(EEG, fileOut)
2222

2323
fid = fopen( [ fileOut '_channels.tsv' ], 'w');
2424
if isempty(EEG.chanlocs)

0 commit comments

Comments
 (0)