Skip to content

Commit

Permalink
Reformatted with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
timcanham committed Nov 23, 2024
1 parent eec1a1e commit fe6bd86
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Autocoders/Python/bin/tlm_packet_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit fe6bd86

Please sign in to comment.