calc_relaxation: create copy of x to avoid unintended overwrite
This commit is contained in:
parent
5fd52a1a44
commit
24b56cbd2a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user