Skip to content

Commit

Permalink
fix CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed May 24, 2021
1 parent 128c416 commit 1435c73
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
10 changes: 9 additions & 1 deletion +bids/+schema/find_suffix_datatypes.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
% For a given suffix, returns all the possible datatypes that have this
% suffix.
%
%
% (C) Copyright 2021 BIDS-MATLAB developers

datatypes = {};

Expand All @@ -14,7 +16,13 @@

for i = 1:size(datatypes_list, 1)

suffix_list = cat(1, schema.datatypes.(datatypes_list{i}).suffixes);
this_datatype = schema.datatypes.(datatypes_list{i});
% for CI
if iscell(this_datatype)
this_datatype = this_datatype{1};
end

suffix_list = cat(1, this_datatype.suffixes);

if any(ismember(suffix_list, suffix))
datatypes{end + 1} = datatypes_list{i};
Expand Down
2 changes: 2 additions & 0 deletions +bids/+schema/find_suffix_group.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
% For a given sufffix and modality, this returns the "suffix group" this
% suffix belongs to
%
%
% (C) Copyright 2021 BIDS-MATLAB developers

idx = [];

Expand Down
2 changes: 2 additions & 0 deletions +bids/+schema/return_entities_for_suffix.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function [entities, is_required] = return_entities_for_suffix(suffix, schema, quiet)
%
% returns the list of entities for a given suffix
%
% (C) Copyright 2021 BIDS-MATLAB developers

modalities = bids.schema.return_modality_groups(schema);

Expand Down
6 changes: 4 additions & 2 deletions +bids/create_filename.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%
% USAGE::
%
% [filename, pth] = create_filename(p)
% [filename, pth, json] = bids.create_filename(p)
%
% :param p: specification of the filename to create, very similar to the output of
% ``bids.internal.parse_filename``
Expand All @@ -27,11 +27,13 @@
%
% USAGE::
%
% [filename, pth] = create_filename(p, file)
% [filename, pth, json] = bids.create_filename(p, file)
%
% :param file: file whose name has to be modified by the content of ``p``.
% :type file: string
%
%
% (C) Copyright 2021 BIDS-MATLAB developers

default.use_schema = true;
default.entity_order = {};
Expand Down
1 change: 1 addition & 0 deletions +bids/create_path.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
% If there is none, or more than one possibility for the datatype, the path will only
% be based on the sub and ses entitiy.
%
% (C) Copyright 2021 BIDS-MATLAB developers

pth = '';

Expand Down

0 comments on commit 1435c73

Please sign in to comment.