Skip to content

Commit

Permalink
RF: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
nno committed Sep 19, 2016
1 parent d91f146 commit 3bb1066
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions mvpa/cosmo_dim_prune.m
Expand Up @@ -145,11 +145,6 @@
attr=ds.(attr_name).(label);
[unq_idxs,unused,map_idxs]=unique(attr);

if isequal(unq_idxs(:),(1:numel(values))')
% already pruned, no update necessary
continue;
end

values=get_unique(label, dim, values, unq_idxs, opt);
ds.a.(dim_name).values{index}=values;

Expand Down
1 change: 1 addition & 0 deletions tests/test_dim_prune.m
Expand Up @@ -78,6 +78,7 @@ function test_dim_prune_label()
end



function helper_test_dim_prune(varargin)
ds=cosmo_synthetic_dataset(varargin{:});

Expand Down

0 comments on commit 3bb1066

Please sign in to comment.