forked from IPKM/nmreval
closing Tg dialog is no longer export
This commit is contained in:
parent
46ca50845b
commit
1d9b641f0a
@ -378,26 +378,4 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
|
|||||||
return super().close()
|
return super().close()
|
||||||
|
|
||||||
def accept(self) -> None:
|
def accept(self) -> None:
|
||||||
if self.new_graph_tau_check.isChecked():
|
|
||||||
graph_id = ''
|
|
||||||
else:
|
|
||||||
graph_id = self.new_graph_tau_combo.currentData()
|
|
||||||
|
|
||||||
ret_dic = {}
|
|
||||||
for key, tg in self._tg_value.items():
|
|
||||||
tgx = [x for x, y in tg.values()]
|
|
||||||
tgy = [y for x, y in tg.values()]
|
|
||||||
if self.tg_export_check.isChecked():
|
|
||||||
tg_pts = Points(x=tgx, y=tgy, name=self._management[key].name + ' (Tg)', value=self._management[key].value)
|
|
||||||
else:
|
|
||||||
tg_pts = None
|
|
||||||
|
|
||||||
if self.tglines_export_check.isChecked():
|
|
||||||
line = self._lines[key]
|
|
||||||
else:
|
|
||||||
line = []
|
|
||||||
|
|
||||||
ret_dic[key] = (tg_pts, line)
|
|
||||||
|
|
||||||
self.newTg.emit(ret_dic, ret_dic2, graph_id)
|
|
||||||
self.close()
|
self.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user