Skip to content

Commit

Permalink
ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laspsandoval committed Oct 10, 2023
1 parent 1e9c070 commit 8323c5e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions imap_processing/ialirt/l0/decom_ialirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@


class PacketLength(Enum):
EXPECTED_LENGTH = 1464
"""Class that represents properties of the IALiRT packet."""

EXPECTED_LENGTH = 1464

def decom_packets(packet_file, xtce_packet_definition):
"""
Unpack data packet. In this function, we unpack and return data
as it is. Data modification will not be done at this step.
Unpack data packet. In this function, we unpack and return data.
Parameters
----------
Expand All @@ -27,10 +27,9 @@ def decom_packets(packet_file, xtce_packet_definition):
Returns
-------
List
packets : list
List of all the unpacked data
"""

packet_definition = xtcedef.XtcePacketDefinition(xtce_packet_definition)
packet_parser = parser.PacketParser(packet_definition)

Expand Down Expand Up @@ -93,7 +92,6 @@ def generate_xarray(packet_file: str, xtce: str):
A dataset containing the decoded data fields with 'time' as the coordinating
dimension.
"""

try:
packets = decom_packets(packet_file, xtce)
except Exception as e:
Expand Down

0 comments on commit 8323c5e

Please sign in to comment.