diff --git a/README.md b/README.md index 2bee547..ea6db60 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,5 @@ v5.3 - adding capability to export stimuli v5.3.1 - update documentation for tInfo.HardwareFilters; fix bug defaults fields not filled for eInfo v5.4 - fix issue with reading BIDS information when importing BIDS data to STUDY + +v6.0 - new examples and fixes for HED diff --git a/bids_export_example3.m b/bids_export_example3.m index e01ed18..eff3a46 100644 --- a/bids_export_example3.m +++ b/bids_export_example3.m @@ -124,7 +124,6 @@ 'CHANGES', CHANGES, ... 'codefiles', codefiles, ... 'trialtype', trialTypes, ... - 'chanlookup', '/data/matlab/eeglab/plugins/dipfit/standard_BEM/elec/standard_1005.elc', ... 'renametype', {}, ... 'checkresponse', 'condition 1', ... 'tInfo', tInfo, ... diff --git a/eegplugin_bids.m b/eegplugin_bids.m index e31996d..211eee4 100644 --- a/eegplugin_bids.m +++ b/eegplugin_bids.m @@ -11,7 +11,7 @@ function vers = eegplugin_bids(fig, trystrs, catchstrs) - vers = '5.4'; + vers = '6.0'; if nargin < 3 error('eegplugin_bids requires 3 arguments'); end diff --git a/pop_taskinfo.m b/pop_taskinfo.m index 77c4363..5f651ee 100644 --- a/pop_taskinfo.m +++ b/pop_taskinfo.m @@ -192,7 +192,11 @@ function okCB(src,event) if strcmp(objs(i).Tag, 'ReferencesAndLinks') || strcmp(objs(i).Tag, 'Authors') gInfo.(objs(i).Tag) = {objs(i).String}; else - gInfo.(objs(i).Tag) = objs(i).String; + tmp = objs(i).String; + if ndims(tmp) > 1 && size(tmp,1) > 1 + tmp = reformatchartostring(tmp); + end + gInfo.(objs(i).Tag) = tmp; end else if strcmp(objs(i).Style, 'popupmenu') @@ -210,7 +214,11 @@ function okCB(src,event) tmp.FilterDescription.Description = objs(i).String; tInfo.(objs(i).Tag) = tmp; else - tInfo.(objs(i).Tag) = objs(i).String; + tmp = objs(i).String; + if ndims(tmp) > 1 && size(tmp,1) > 1 + tmp = reformatchartostring(tmp); + end + tInfo.(objs(i).Tag) = tmp; end end end @@ -340,4 +348,10 @@ function preFill() function editedCB(src,event) end + + function string_out = reformatchartostring(char_in) + char_in(1:end-1,end+1) = newline; + char_in = char_in'; + string_out = char_in(:)'; + end end \ No newline at end of file