begin work on gui

This commit is contained in:
Dominik Demuth 2023-05-23 19:23:13 +02:00
parent 685b9d2316
commit 09e415babf
3 changed files with 15 additions and 8 deletions

View File

@ -0,0 +1,8 @@
from ..Qt import QtWidgets
class TgCalculator(QtWidgets.QDialog):
def __init__(self, parent=None):
super().__init__(parent=parent)

View File

@ -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)

View File

@ -388,10 +388,11 @@ class HdfReader(HdfNode):
if multi:
var_key = None
try:
value = param_dic[var_key.lower()]
except KeyError:
pass
if var_key is not None:
try:
value = param_dic[var_key.lower()]
except KeyError:
pass
return value