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) y = np.asarray(y).reshape(np.asarray(x).shape)
x, unique = np.unique(x, return_index=True) x, unique = np.unique(x, return_index=True)
if kwargs.get('y_err', None) is not None:
if 'y_err' in kwargs: _yerr = np.asarray(kwargs['y_err']).reshape(np.asarray(x).shape)
_yerr = kwargs['y_err']
_yerr = np.asarray(_yerr).reshape(np.asarray(x).shape)
kwargs['y_err'] = _yerr[unique] kwargs['y_err'] = _yerr[unique]
super().__init__(x, y[unique], **kwargs) super().__init__(x, y[unique], **kwargs)

View File

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