From 750e6bcd65bb060bab9a0d0d63362aee7a2e94a1 Mon Sep 17 00:00:00 2001 From: Kavin Teenakul Date: Sun, 1 Oct 2023 10:41:40 +0200 Subject: [PATCH] fix lorentzian not fixed value --- Python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/main.py b/Python/main.py index 7d129b7..5e2dca6 100755 --- a/Python/main.py +++ b/Python/main.py @@ -2563,7 +2563,7 @@ def PeakSelector(self, mod): def ratio_setup(self, pars, index_pk, strind, index): if index == 2 or index == 6: # unset default expression which sets sigma and gamma for the voigt and skewed-voigt always to the same value pars[strind + str(index_pk + 1) + '_gamma'].expr = '' - pars[strind + str(index_pk + 1) + '_gamma'].vary = True + if not self.pre[2][3][2 * index_pk] == 2: pars[strind + str(index_pk + 1) + '_gamma'].vary = True # amp ratio setup if self.pre[2][15][2 * index_pk + 1] > 0: pktar = self.pre[2][15][2 * index_pk + 1]