flake8 and black
All checks were successful
EIVE/-/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-07-26 12:54:13 +02:00
parent ffdb4451f6
commit 74cfa2949a
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
3 changed files with 5 additions and 4 deletions

View File

@ -1,11 +1,11 @@
__version__ = "5.2.0" __version__ = "5.3.0"
import logging import logging
from pathlib import Path from pathlib import Path
SW_NAME = "eive-tmtc" SW_NAME = "eive-tmtc"
VERSION_MAJOR = 5 VERSION_MAJOR = 5
VERSION_MINOR = 2 VERSION_MINOR = 3
VERSION_REVISION = 0 VERSION_REVISION = 0
EIVE_TMTC_ROOT = Path(__file__).parent EIVE_TMTC_ROOT = Path(__file__).parent

View File

@ -139,7 +139,8 @@ def handle_event_packet( # noqa C901: Complexity okay here
_LOGGER.error(f"Received invalid event fields for event {event_def}") _LOGGER.error(f"Received invalid event fields for event {event_def}")
finally: finally:
pw.dlog( 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": if info.name == "HEALTH_INFO":
specific_handler = True specific_handler = True

View File

@ -1172,7 +1172,7 @@ def handle_fused_rot_rate_data(pw: PrintWrapper, hk_data: bytes):
pw.dlog("Received Fused Rotation Rates Data Set") pw.dlog("Received Fused Rotation Rates Data Set")
fmt_vec3_double = "!ddd" fmt_vec3_double = "!ddd"
inc_len_vec3_double = struct.calcsize(fmt_vec3_double) 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") pw.dlog("Received HK set too small")
return return
current_idx = 0 current_idx = 0