diff --git a/imap_processing/idex/l0/idex_l0.py b/imap_processing/idex/l0/idex_l0.py index 9b21f134e..126577fee 100644 --- a/imap_processing/idex/l0/idex_l0.py +++ b/imap_processing/idex/l0/idex_l0.py @@ -1,19 +1,21 @@ """Decommutate IDEX CCSDS packets.""" import logging +from pathlib import Path +from typing import Union from imap_processing import decom, imap_module_directory logger = logging.getLogger(__name__) -def decom_packets(packet_file: str) -> list: +def decom_packets(packet_file: Union[str, Path]) -> list: """ Decom IDEX data packets using IDEX packet definition. Parameters ---------- - packet_file : str + packet_file : pathlib.Path | str String to data packet path with filename. Returns