Skip to content

Commit 02885d0

Browse files
committed
octave compatibility
1 parent ce07834 commit 02885d0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/utils/add_deformation_field.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function sources = add_deformation_field(bf, sources, map, verbose)
22
% (C) Copyright 2021 spm_2_bids developers
3-
if ~startsWith(bf.prefix, map.norm)
3+
if ~bids.internal.starts_with(bf.prefix, map.norm)
44
return
55
end
66

src/utils/update_prefix.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
end
1111

1212
% remove the prefix of the last step
13-
if startsWith(bf.prefix, map.smooth)
13+
if bids.internal.starts_with(bf.prefix, map.smooth)
1414

1515
% in case the prefix includes a number to denotate the FXHM used
1616
% for smoothing
@@ -21,16 +21,16 @@
2121
bf = shorten_prefix(bf, 1);
2222
end
2323

24-
elseif startsWith(bf.prefix, map.unwarp)
24+
elseif bids.internal.starts_with(bf.prefix, map.unwarp)
2525
bf = shorten_prefix(bf, 1);
2626

27-
elseif startsWith(bf.prefix, map.norm)
27+
elseif bids.internal.starts_with(bf.prefix, map.norm)
2828
bf = shorten_prefix(bf, 1);
2929

30-
elseif startsWith(bf.prefix, ['rp_' map.stc])
30+
elseif bids.internal.starts_with(bf.prefix, ['rp_' map.stc])
3131
bf = shorten_prefix(bf, 3);
3232

33-
elseif startsWith(bf.prefix, 'mean')
33+
elseif bids.internal.starts_with(bf.prefix, 'mean')
3434
% TODO mean may involve several files from the source (across runs
3535
% and sessions
3636
% prefixes = {

0 commit comments

Comments
 (0)