Commit 99fd37f8 authored by Simon Waldman's avatar Simon Waldman

find_nesting_region.m: Bugfix: Don't do stuff with weights if using type 1 nesting.

parent 0e127f5c
......@@ -243,9 +243,11 @@ for obc_idx = 1:Mobj.nObs
% setdiff
if ~isempty(truecandidate)
for dd=1:length(truecandidate)
Nested.read_obc_elems{end} = cat(2,Nested.read_obc_elems{end},truecandidate(dd));
Nested.weight_cell{end} = cat(2,Nested.weight_cell{end},Nested.weight_cell{end}(end));
end
Nested.read_obc_elems{end} = cat(2,Nested.read_obc_elems{end},truecandidate(dd));
if conf.Nested_type(obc_idx) ~= 1
Nested.weight_cell{end} = cat(2,Nested.weight_cell{end},Nested.weight_cell{end}(end));
end
end
end
if ftbverbose
fprintf('\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment