forked from IPKM/nmreval
improvement of t1 calc
This commit is contained in:
parent
22f317da8d
commit
e51a02d277
@ -1152,12 +1152,15 @@ class UpperManagement(QtCore.QObject):
|
|||||||
|
|
||||||
@QtCore.pyqtSlot(dict)
|
@QtCore.pyqtSlot(dict)
|
||||||
def calc_relaxation(self, opts: dict):
|
def calc_relaxation(self, opts: dict):
|
||||||
|
|
||||||
params = opts['pts']
|
params = opts['pts']
|
||||||
if len(params) == 4:
|
if len(params) == 4:
|
||||||
if params[3]:
|
if params[3]:
|
||||||
_x = x1 = np.geomspace(params[0], params[1], num=params[2])
|
_x = np.geomspace(params[0], params[1], num=params[2])
|
||||||
|
x1 = np.geomspace(params[0], params[1], num=params[2])
|
||||||
else:
|
else:
|
||||||
_x = x1 = np.linspace(params[0], params[1], num=params[2])
|
_x = np.linspace(params[0], params[1], num=params[2])
|
||||||
|
x1 = np.linspace(params[0], params[1], num=params[2])
|
||||||
|
|
||||||
if opts['axis1'] in ['t', 'invt1000']:
|
if opts['axis1'] in ['t', 'invt1000']:
|
||||||
t_p = opts['t_param']
|
t_p = opts['t_param']
|
||||||
|
@ -131,7 +131,7 @@ class QRelaxCalc(QtWidgets.QDialog, Ui_Dialog):
|
|||||||
self.verticalLayout_3.addWidget(_temp)
|
self.verticalLayout_3.addWidget(_temp)
|
||||||
|
|
||||||
def get_taus(self, dic: dict):
|
def get_taus(self, dic: dict):
|
||||||
dic['tau_type'] = {0: 'raw', 1: 'mean', 2: 'peak', 3: 'logmean'}[self.xtype_combobox.currentIndex()]
|
dic['tau_type'] = {0: 'raw', 1: 'peak', 2: 'mean', 3: 'logmean'}[self.xtype_combobox.currentIndex()]
|
||||||
dic['axis1'] = {self.radioButton: 'tau', self.radioButton_2: 'omega',
|
dic['axis1'] = {self.radioButton: 'tau', self.radioButton_2: 'omega',
|
||||||
self.radioButton_3: 't', self.radioButton_4: 'invt1000'}[self.buttonGroup.checkedButton()]
|
self.radioButton_3: 't', self.radioButton_4: 'invt1000'}[self.buttonGroup.checkedButton()]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user