Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a5a9561b54
@ -181,7 +181,11 @@ class QFitParameterWidget(QtWidgets.QWidget, Ui_FormFit):
|
|||||||
for i, value in enumerate(self.data_values[sid]):
|
for i, value in enumerate(self.data_values[sid]):
|
||||||
w = self.data_parameter[i]
|
w = self.data_parameter[i]
|
||||||
w.blockSignals(True)
|
w.blockSignals(True)
|
||||||
w.show_as_local_parameter(value is not None)
|
try:
|
||||||
|
w.show_as_local_parameter(value is not None)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
if value is None:
|
if value is None:
|
||||||
w.value = self.glob_values[i]
|
w.value = self.glob_values[i]
|
||||||
else:
|
else:
|
||||||
|
@ -89,8 +89,11 @@ class QGraceReader(QtWidgets.QDialog, Ui_Dialog):
|
|||||||
item = iterator.value()
|
item = iterator.value()
|
||||||
key = (item.data(0, QtCore.Qt.UserRole))
|
key = (item.data(0, QtCore.Qt.UserRole))
|
||||||
s = self._reader.dataset(*key)
|
s = self._reader.dataset(*key)
|
||||||
label = self._reader.get_property(*key, 'legend').replace('"', '')
|
label = self._reader.get_property(*key, 'legend')
|
||||||
# label = self._reader.graphs[key[0]].sets[key[1]]['legend'].replace('"', '')
|
if label is None:
|
||||||
|
label = ''
|
||||||
|
else:
|
||||||
|
label = label.replace('"', '')
|
||||||
sd = s.data
|
sd = s.data
|
||||||
sd = np.atleast_2d(sd)
|
sd = np.atleast_2d(sd)
|
||||||
if s.type == 'xydy':
|
if s.type == 'xydy':
|
||||||
|
Loading…
Reference in New Issue
Block a user