From 39e0d3a11f6a57073f2ffcb0d5d483fc8cdf99b9 Mon Sep 17 00:00:00 2001
From: Olivier Sauter <olivier.sauter@epfl.ch>
Date: Wed, 19 Apr 2023 07:42:57 +0200
Subject: [PATCH] add setpath_gdat.m for crpptbx automated subpaths and minor
 fix for cxrs

---
 matlab/TCV/gdat_tcv.m | 1 +
 matlab/setpath_gdat.m | 1 +
 2 files changed, 2 insertions(+)
 create mode 120000 matlab/setpath_gdat.m

diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m
index c9b6bef8..085c24a4 100644
--- a/matlab/TCV/gdat_tcv.m
+++ b/matlab/TCV/gdat_tcv.m
@@ -1001,6 +1001,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
       if ~isfield(fit_tension,'zeff'); fit_tension.zeff = fit_tension_default; end
     end
     gdat_data.gdat_params.fit_tension = fit_tension;
+    cxrs_params.prof.all.taus = fit_tension.ti;
     cxrs_params.prof.Ti.taus = fit_tension.ti;
     cxrs_params.prof.vi.taus = fit_tension.vi;
     cxrs_params.prof.nc.taus = fit_tension.ni;
diff --git a/matlab/setpath_gdat.m b/matlab/setpath_gdat.m
new file mode 120000
index 00000000..a64c15b1
--- /dev/null
+++ b/matlab/setpath_gdat.m
@@ -0,0 +1 @@
+gdatpaths.m
\ No newline at end of file
-- 
GitLab