forked from M-Labs/artiq
waveform: simplify process_ddb
This commit is contained in:
parent
780e0bada8
commit
4c9b0f1159
@ -852,13 +852,12 @@ class WaveformDock(QtWidgets.QDockWidget):
|
||||
channel_list = comm_analyzer.get_channel_list(self._ddb)
|
||||
self._channel_model.clear()
|
||||
self._channel_model.update(channel_list)
|
||||
for name, desc in self._ddb.items():
|
||||
if name == "core_analyzer":
|
||||
logger.info("coreanalyzer exists")
|
||||
addr = desc["host"]
|
||||
port = desc.get("port_proxy", 1385)
|
||||
port_control = desc.get("port_proxy_control", 1386)
|
||||
if addr is not None:
|
||||
desc = self._ddb.get("core_analyzer")
|
||||
if desc is not None:
|
||||
logger.info("desc found")
|
||||
addr = desc["host"]
|
||||
port = desc.get("port_proxy", 1385)
|
||||
port_control = desc.get("port_proxy_control", 1386)
|
||||
self.proxy_client.update_address(addr, port, port_control)
|
||||
|
||||
def init_ddb(self, ddb):
|
||||
|
Loading…
Reference in New Issue
Block a user