Commit 17a6c6af authored by Houtan Bastani's avatar Houtan Bastani

add assert for fan option

parent f5d2735e
......@@ -277,6 +277,8 @@ if isunix && ~ismac
for i=2:ne
tmp = ds{i} - ds{i-1};
idx = find(tmp.data ~= 0);
assert(~isempty(idx), ...
'Problem creating fan area for data provided. Please check your data.');
split = ds(ds.dates(idx));
end
idx = find(ds.dates == split.dates(1));
......
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