Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
remove walrus operator, not compatible with python7, used at hulk
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Samartsev committed Dec 5, 2023
1 parent ef62b0b commit f6c39f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pymepix/processing/rawtodisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def _run_filewriter_thr(self, sock_addr, context=None):
self.info(f"zmq connect to tcp://127.0.0.1:{cfg.default_cfg['zmq_port']}")

# socket to maxwell
if remote_server := cfg.default_cfg.get('remote_processing_host') is not None:
remote_server = cfg.default_cfg.get('remote_processing_host')

if remote_server is not None:
self.info(f'connecting to processing server {remote_server}')
max_sock = context.socket(zmq.PUSH)
max_sock.connect(f"tcp://{remote_server}")
Expand Down

0 comments on commit f6c39f3

Please sign in to comment.