MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / pb_dbase_clicked

Method pb_dbase_clicked

pyxrf/gui_module/tab_wd_load_data.py:388–406  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

386 msgbox.exec()
387
388 def pb_dbase_clicked(self):
389 dlg = DialogSelectScan()
390 if dlg.exec() == QDialog.Accepted:
391 mode, id_uid = dlg.get_id_uid()
392
393 self.signal_loading_new_run.emit()
394
395 def cb(id_uid):
396 result_dict = {}
397 try:
398 msg, file_name = self.gpc.load_run_from_db(id_uid)
399 status = True
400 except Exception as ex:
401 msg, file_name = str(ex), ""
402 status = False
403 result_dict.update({"status": status, "msg": msg, "id_uid": id_uid, "file_name": file_name})
404 return result_dict
405
406 self._compute_in_background(cb, self.slot_dbase_clicked, id_uid=id_uid)
407
408 @Slot(object)
409 def slot_dbase_clicked(self, result):

Callers

nothing calls this directly

Calls 3

get_id_uidMethod · 0.95
DialogSelectScanClass · 0.85

Tested by

no test coverage detected