diff --git a/crpptbx/TCV/gdat_tcv.m b/crpptbx/TCV/gdat_tcv.m index 99c6fef7812a119a3b4afc3c1fa6e7f446252f44..b45ace512c71b7385aca2d48c0ef1beb013ef9c2 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;