From b98c390ed86f0effde90527aac7ab163541bbbe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 11 Oct 2013 09:48:55 +0200 Subject: [PATCH] Only test the value of ndat member in @dynDates/isempty function. --- matlab/@dynDates/isempty.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/@dynDates/isempty.m b/matlab/@dynDates/isempty.m index 935d8d06c..980ff2b09 100644 --- a/matlab/@dynDates/isempty.m +++ b/matlab/@dynDates/isempty.m @@ -39,7 +39,7 @@ function B = isempty(A) % --*-- Unitary tests --*-- % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -B = all(isnan(A.time(:))) && isnan(A.freq) && isequal(A.ndat,0); +B = isequal(A.ndat,0); %@test:1 %$ % Instantiate an empty dynDate object