From 74cfa2949ad6086c9171b0998988caa88daef816 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 26 Jul 2023 12:54:13 +0200 Subject: [PATCH] flake8 and black --- eive_tmtc/__init__.py | 4 ++-- eive_tmtc/pus_tm/event_handler.py | 3 ++- eive_tmtc/tmtc/acs/acs_ctrl.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/eive_tmtc/__init__.py b/eive_tmtc/__init__.py index c6c2029..589d82f 100644 --- a/eive_tmtc/__init__.py +++ b/eive_tmtc/__init__.py @@ -1,11 +1,11 @@ -__version__ = "5.2.0" +__version__ = "5.3.0" import logging from pathlib import Path SW_NAME = "eive-tmtc" VERSION_MAJOR = 5 -VERSION_MINOR = 2 +VERSION_MINOR = 3 VERSION_REVISION = 0 EIVE_TMTC_ROOT = Path(__file__).parent diff --git a/eive_tmtc/pus_tm/event_handler.py b/eive_tmtc/pus_tm/event_handler.py index d90d3c2..d499652 100644 --- a/eive_tmtc/pus_tm/event_handler.py +++ b/eive_tmtc/pus_tm/event_handler.py @@ -139,7 +139,8 @@ def handle_event_packet( # noqa C901: Complexity okay here _LOGGER.error(f"Received invalid event fields for event {event_def}") finally: pw.dlog( - f"Active SD card {active_sd!r} | SD 0 State {sd_0_state!r} | SD 1 State {sd_1_state!r}" + f"Active SD card {active_sd!r} | SD 0 State {sd_0_state!r} | SD 1 " + f"State {sd_1_state!r}" ) if info.name == "HEALTH_INFO": specific_handler = True diff --git a/eive_tmtc/tmtc/acs/acs_ctrl.py b/eive_tmtc/tmtc/acs/acs_ctrl.py index 02363fe..9b93f53 100644 --- a/eive_tmtc/tmtc/acs/acs_ctrl.py +++ b/eive_tmtc/tmtc/acs/acs_ctrl.py @@ -1172,7 +1172,7 @@ def handle_fused_rot_rate_data(pw: PrintWrapper, hk_data: bytes): pw.dlog("Received Fused Rotation Rates Data Set") fmt_vec3_double = "!ddd" inc_len_vec3_double = struct.calcsize(fmt_vec3_double) - if len(hk_data) < 3*inc_len_vec3_double: + if len(hk_data) < 3 * inc_len_vec3_double: pw.dlog("Received HK set too small") return current_idx = 0