From fe6bd865461d10d17a3dbe9316819e60ac5aa154 Mon Sep 17 00:00:00 2001 From: Timothy Canham Date: Fri, 22 Nov 2024 16:36:07 -0800 Subject: [PATCH] Reformatted with Black --- Autocoders/Python/bin/tlm_packet_gen.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Autocoders/Python/bin/tlm_packet_gen.py b/Autocoders/Python/bin/tlm_packet_gen.py index 344c69b13a..2502afe564 100755 --- a/Autocoders/Python/bin/tlm_packet_gen.py +++ b/Autocoders/Python/bin/tlm_packet_gen.py @@ -337,16 +337,17 @@ def gen_packet_file(self, xml_filename): for channel in entry: channel_name = channel.attrib["name"] # TKC 11/20/2024 - In order to work with the ground system, - # we have to strip off the leading module. This is a + # we have to strip off the leading module. This is a # band-aid until FPP packets are done name_parts = channel_name.split(".") if len(name_parts) != 3: raise TlmPacketParseValueError( - "Channel %s must be of the format \"module.component.channel_name\"" % channel_name + 'Channel %s must be of the format "module.component.channel_name"' + % channel_name ) - (module,component,channel) = name_parts - channel_name = "%s.%s" % (component,channel) + (module, component, channel) = name_parts + channel_name = "%s.%s" % (component, channel) if not channel_name in channel_size_dict: raise TlmPacketParseValueError( "Channel %s does not exist" % channel_name @@ -394,16 +395,17 @@ def gen_packet_file(self, xml_filename): for channel in entry: channel_name = channel.attrib["name"] # TKC 11/20/2024 - In order to work with the ground system, - # we have to strip off the leading module. This is a + # we have to strip off the leading module. This is a # band-aid until FPP packets are done name_parts = channel_name.split(".") if len(name_parts) != 3: raise TlmPacketParseValueError( - "Channel %s must be of the format \"module.component.channel_name\"" % channel_name + 'Channel %s must be of the format "module.component.channel_name"' + % channel_name ) - (module,component,channel) = name_parts - channel_name = "%s.%s" % (component,channel) + (module, component, channel) = name_parts + channel_name = "%s.%s" % (component, channel) if not channel_name in channel_size_dict: raise TlmPacketParseValueError(