From 311ddd4678fc7f68f27731b077ccbb8b8110c46e Mon Sep 17 00:00:00 2001
From: Olivier Sauter <olivier.sauter@epfl.ch>
Date: Thu, 4 Jul 2024 13:39:31 +0200
Subject: [PATCH] fix case empty shot input

---
 matlab/gdat.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/gdat.m b/matlab/gdat.m
index e21551bf..942b0dd5 100644
--- a/matlab/gdat.m
+++ b/matlab/gdat.m
@@ -188,7 +188,7 @@ try
     args = [{shot,data_request},varargin_eff];
   end
   % treat multiple shot numbers
-  if nargin > 0 && isnumeric(shot)
+  if nargin > 0 && isnumeric(shot) && ~isempty(shot)
     args_in = args;
     for i=1:numel(shot)
       args{1} = shot(i);
-- 
GitLab