-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enh] set specific default depth-weighting for nirs (#27)
- Loading branch information
1 parent
7c561ae
commit 31017be
Showing
5 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,8 @@ | |
SUBJ = cellfun( @(a) strrep( bst_fileparts( bst_fileparts( a ) ), filesep, '' ), DTS, 'uni', 0 ); | ||
[dum,STD] = cellfun( @(a) bst_get('Study', fullfile( bst_fileparts(a), 'brainstormstudy.mat' ) ), DTS, 'uni', 0 ); | ||
STD = cell2mat( STD ); | ||
|
||
|
||
ChannelTypes = inputData.ChannelTypes; | ||
OPTIONS = OPTIONS.options.mem.Value; | ||
|
||
if isfield(OPTIONS,'MEMpaneloptions') && ~isempty(OPTIONS.MEMpaneloptions) | ||
|
@@ -75,17 +76,17 @@ | |
[st,is] = bst_get('Study', fullfile( bst_fileparts(DTS{ii}), 'brainstormstudy.mat' ) ); | ||
STD = [STD is]; | ||
end | ||
|
||
ChannelTypes = {}; | ||
OPTIONS = be_main(); | ||
else | ||
% Unexpected call | ||
fprintf('\n\n***\tError in call to panel_brainentropy\t***\n\tPlease report this bug to: [email protected]\n\n') | ||
return | ||
end | ||
|
||
OPTIONS = be_struct_copy_fields(OPTIONS,be_cmem_pipelineoptions,[],0); | ||
OPTIONS = be_struct_copy_fields(OPTIONS,be_wmem_pipelineoptions,[],0); | ||
OPTIONS = be_struct_copy_fields(OPTIONS, be_rmem_pipelineoptions,[],0); | ||
OPTIONS = be_struct_copy_fields(OPTIONS,be_cmem_pipelineoptions(ChannelTypes),[],0); | ||
OPTIONS = be_struct_copy_fields(OPTIONS,be_wmem_pipelineoptions(ChannelTypes),[],0); | ||
OPTIONS = be_struct_copy_fields(OPTIONS, be_rmem_pipelineoptions(ChannelTypes),[],0); | ||
|
||
% Version | ||
OPTIONS.automatic.version = '3.0.0'; | ||
|
@@ -1178,11 +1179,11 @@ function SwitchPipeline(varargin) | |
if any(selected) | ||
|
||
if strcmp(choices(selected), 'cMEM') | ||
NEW_OPTIONS = be_struct_copy_fields(OPTIONS, be_cmem_pipelineoptions,[],1); | ||
NEW_OPTIONS = be_struct_copy_fields(OPTIONS, be_cmem_pipelineoptions(ChannelTypes),[],1); | ||
elseif strcmp(choices(selected), 'wMEM') | ||
NEW_OPTIONS = be_struct_copy_fields(OPTIONS, be_wmem_pipelineoptions,[],1); | ||
NEW_OPTIONS = be_struct_copy_fields(OPTIONS, be_wmem_pipelineoptions(ChannelTypes),[],1); | ||
elseif strcmp(choices(selected), 'rMEM') | ||
NEW_OPTIONS = be_struct_copy_fields(OPTIONS, be_rmem_pipelineoptions,[],1); | ||
NEW_OPTIONS = be_struct_copy_fields(OPTIONS, be_rmem_pipelineoptions(ChannelTypes),[],1); | ||
end | ||
|
||
%% Save options while changing the pipeline | ||
|