add assert for fan option

remove-priordens
Houtan Bastani 2018-02-14 11:47:55 +01:00
parent 2abe25e3aa
commit e5fb0efd7b
1 changed files with 2 additions and 0 deletions

View File

@ -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));