forked from IPKM/nmreval
begin work on gui
This commit is contained in:
parent
685b9d2316
commit
09e415babf
8
src/gui_qt/dsc/glass_dialog.py
Normal file
8
src/gui_qt/dsc/glass_dialog.py
Normal file
@ -0,0 +1,8 @@
|
||||
from ..Qt import QtWidgets
|
||||
|
||||
|
||||
class TgCalculator(QtWidgets.QDialog):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent=parent)
|
||||
|
||||
|
@ -23,10 +23,8 @@ class DSC(Points):
|
||||
y = np.asarray(y).reshape(np.asarray(x).shape)
|
||||
|
||||
x, unique = np.unique(x, return_index=True)
|
||||
|
||||
if 'y_err' in kwargs:
|
||||
_yerr = kwargs['y_err']
|
||||
_yerr = np.asarray(_yerr).reshape(np.asarray(x).shape)
|
||||
if kwargs.get('y_err', None) is not None:
|
||||
_yerr = np.asarray(kwargs['y_err']).reshape(np.asarray(x).shape)
|
||||
kwargs['y_err'] = _yerr[unique]
|
||||
|
||||
super().__init__(x, y[unique], **kwargs)
|
||||
|
@ -388,6 +388,7 @@ class HdfReader(HdfNode):
|
||||
if multi:
|
||||
var_key = None
|
||||
|
||||
if var_key is not None:
|
||||
try:
|
||||
value = param_dic[var_key.lower()]
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user