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

Method cb

pyxrf/gui_module/tab_wd_load_data.py:302–311  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

300 self.signal_loading_new_run.emit()
301
302 def cb(file_path):
303 result_dict = {}
304 try:
305 msg = self.gpc.open_data_file(file_path)
306 status = True
307 except Exception as ex:
308 msg = str(ex)
309 status = False
310 result_dict.update({"status": status, "msg": msg, "file_path": file_path})
311 return result_dict
312
313 self._compute_in_background(cb, self.slot_file_clicked, file_path=file_path)
314

Callers

nothing calls this directly

Calls 6

open_data_fileMethod · 0.80
updateMethod · 0.80
load_run_from_dbMethod · 0.80
set_data_channelMethod · 0.80

Tested by

no test coverage detected