From 24b56cbd2abae152e4147efccc3cb2e1ce8b0561 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 13 Sep 2023 17:16:57 +0200 Subject: [PATCH] calc_relaxation: create copy of x to avoid unintended overwrite --- src/gui_qt/main/management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_qt/main/management.py b/src/gui_qt/main/management.py index 2f87e87..62f3cb9 100644 --- a/src/gui_qt/main/management.py +++ b/src/gui_qt/main/management.py @@ -1189,10 +1189,10 @@ class UpperManagement(QtCore.QObject): y = np.zeros(_x.size) for i in range(_x.size): - _x[i] = sd.convert(_x[i], *sd_param[i], from_=opts['tau_type'], to_='raw') + _x_i = sd.convert(_x[i], *sd_param[i], from_=opts['tau_type'], to_='raw') relax.dist_parameter = sd_param[i] relax.set_coupling(opts['coup'], parameter=cp_param[i], keywords=opts['cp_param'][1]) - y[i] = relax_func(x2, _x[i]) + y[i] = relax_func(x2, _x_i) pts = Points(x1, y, name=sd.name) pts.meta.update(opts)