Skip to content

Commit

Permalink
implement 100 times faster filepath estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatthes1982 committed Dec 6, 2017
1 parent fdcdd30 commit dd2b746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utilities/private/defaultId.m
Expand Up @@ -40,7 +40,9 @@

% remove the non-FieldTrip functions from the path, these should not be part of the default message identifier
keep = true(size(stack));
[v, p] = ft_version;
p = fileparts(mfilename('fullpath'));
% strip away '/utilities/private' where this function is located
p = p(1:end-18);
for i=1:numel(stack)
keep(i) = strncmp(p, stack(i).file, length(p));
end
Expand Down

0 comments on commit dd2b746

Please sign in to comment.