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

Method cbox_channel_index_changed

pyxrf/gui_module/tab_wd_load_data.py:542–552  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

540 self.gpc.set_load_each_channel(state)
541
542 def cbox_channel_index_changed(self, index):
543 def cb(index):
544 try:
545 self.gpc.set_data_channel(index)
546 success, msg = True, ""
547 except Exception as ex:
548 success = False
549 msg = str(ex)
550 return {"success": success, "msg": msg}
551
552 self._compute_in_background(cb, self.slot_channel_index_changed, index=index)
553
554 @Slot(object)
555 def slot_channel_index_changed(self, result):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected