From 4e302db895d9eab4bd6971332eb4b6f10ba9c05e Mon Sep 17 00:00:00 2001 From: Marko Mecina <marko.mecina@univie.ac.at> Date: Thu, 14 Mar 2024 11:06:24 +0100 Subject: [PATCH] fix uninitialised sequence counter --- Ccs/ccs_function_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ccs/ccs_function_lib.py b/Ccs/ccs_function_lib.py index e246145..6de174b 100644 --- a/Ccs/ccs_function_lib.py +++ b/Ccs/ccs_function_lib.py @@ -3340,7 +3340,7 @@ def _tcsend_common(tc_bytes, apid, st, sst, sleep=0., pool_name='LIVE', pkt_time return # get the SSC of the sent packet - ssc = counters[int(str(apid), 0)] + ssc = counters.setdefault(int(str(apid), 0), 1) # increase the SSC counter counters[int(str(apid), 0)] += 1 # More specific Logging format that is compatible with the TST -- GitLab