From 7ba06bfe61cad4ad41f478188917cac6571a6875 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 1 Apr 2023 18:30:36 +0900 Subject: [PATCH] fix typo in comm_analyzer.py error_occured -> error_occurred occured -> occurred --- artiq/coredevice/comm_analyzer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/coredevice/comm_analyzer.py b/artiq/coredevice/comm_analyzer.py index 8024e59bd..09ad3618f 100644 --- a/artiq/coredevice/comm_analyzer.py +++ b/artiq/coredevice/comm_analyzer.py @@ -102,15 +102,15 @@ def decode_dump(data): # messages are big endian parts = struct.unpack(endian + "IQbbb", data[:15]) (sent_bytes, total_byte_count, - error_occured, log_channel, dds_onehot_sel) = parts + error_occurred, log_channel, dds_onehot_sel) = parts expected_len = sent_bytes + 15 if expected_len != len(data): raise ValueError("analyzer dump has incorrect length " "(got {}, expected {})".format( len(data), expected_len)) - if error_occured: - logger.warning("error occured within the analyzer, " + if error_occurred: + logger.warning("error occurred within the analyzer, " "data may be corrupted") if total_byte_count > sent_bytes: logger.info("analyzer ring buffer has wrapped %d times",