From 92e22403178d8e8e7c846a85901c5e4ca9bddb58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?William=20L=C3=B6vfors?= <william.lovfors@gmail.com>
Date: Tue, 14 Jul 2020 11:12:36 +0200
Subject: [PATCH] Fixed a small bug, since we now look for filenames containing
 .mat, we require >0 not >2

---
 FindBestParametersFile.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/FindBestParametersFile.m b/FindBestParametersFile.m
index d08ec6a..5e15d89 100644
--- a/FindBestParametersFile.m
+++ b/FindBestParametersFile.m
@@ -11,7 +11,7 @@ if useSub
     pathToSearch=[pathToSearch '/**/*.mat'];
 end
 files=dir(pathToSearch);
-assert(length(files)>2,'No files to search in the provided path')
+assert(length(files)>0,'No files to search in the provided path')
 names=string({files.name});
 files(cellfun(@isempty,regexp(names, key)))=[]; %removes all files not containing "key"
 
-- 
GitLab