From 7164fb4f1abd039b019a71812eff03ca604e5d02 Mon Sep 17 00:00:00 2001
From: Olivier Sauter <olivier.sauter@epfl.ch>
Date: Wed, 13 Feb 2019 09:58:21 +0000
Subject: [PATCH] fix new problem with upper case data requested

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11424 d63d8f72-b253-0410-a779-e742ad2e26cf
---
 crpptbx/TCV/gdat_tcv.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crpptbx/TCV/gdat_tcv.m b/crpptbx/TCV/gdat_tcv.m
index 99c6fef7..b45ace51 100644
--- a/crpptbx/TCV/gdat_tcv.m
+++ b/crpptbx/TCV/gdat_tcv.m
@@ -236,6 +236,7 @@ else
 end
 if ~isempty(ij); 
   gdat_data.gdat_request = data_request_names_all{ij};
+  gdat_params.data_request = gdat_data.gdat_request;
   if isfield(data_request_names.all.(data_request_names_all{ij}),'description') && ~isempty(data_request_names.all.(data_request_names_all{ij}).description)
     % copy description of keyword
     gdat_data.request_description = data_request_names.all.(data_request_names_all{ij}).description;
@@ -254,7 +255,7 @@ if ~isfield(gdat_params,'data_request') || isempty(gdat_params.data_request)
   error_status=5;
   return
 end
-gdat_data.gdat_params = gdat_params;
+gdat_data.gdat_params = gdat_params; % This means that before here it is gdat_params which should be updated
 
 % re-assign main variables to make sure use the one in gdat_data structure
 shot = gdat_data.shot;
-- 
GitLab