Skip to content

Commit

Permalink
Fixed metadata match bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Oct 24, 2019
1 parent b349d9b commit f1f35db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @stateDesign/matchMetadata.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
for v = 1:nVar
var = obj.var( cv(v) );
varMeta = var.meta.(ensDim(dim))(var.indices{d}, :);
[~, keep] = intersect( meta, varMeta, 'rows', 'stable' );
[~, keep] = intersect( varMeta, meta, 'rows', 'stable' );
obj.var( cv(v) ).indices{d} = var.indices{d}(keep);
end
end
Expand Down

0 comments on commit f1f35db

Please sign in to comment.