Skip to content

Commit

Permalink
fix find action json
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 10, 2024
1 parent dedde72 commit d116fbe
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions src/constants/bidsAppsActions.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,27 @@

% (C) Copyright 2022 bidspm developers

input_file = fullfile(fileparts(mfilename('fullpath')), ...
'..', ...
'bidspm', ...
'data', ...
'allowed_actions.json');
try
input_file = fullfile(fileparts(mfilename('fullpath')), ...
'..', ...
'bidspm', ...
'data', ...
'allowed_actions.json');

value = bids.util.jsondecode(input_file);
value = bids.util.jsondecode(input_file);
catch
value = {'copy'; ...
'create_roi'; ...
'preprocess'; ...
'smooth'; ...
'default_model'; ...
'stats'; ...
'contrasts'; ...
'results'; ...
'specify_only'; ...
'bms'; ...
'bms-posterior'; ...
'bms-bms'};
end

end

0 comments on commit d116fbe

Please sign in to comment.