From ed75c25bf7b5e419c900aa62bbbb05130277d4b0 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Mon, 8 Jan 2024 19:06:03 -0700 Subject: [PATCH] MNT: Remove buffer size limitation Letting the read buffer be determined by the interpreter helps with speed of the tests locally. No need to explicitly set the size for now. --- imap_processing/glows/l0/decom_glows.py | 5 +---- imap_processing/mag/l0/decom_mag.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/imap_processing/glows/l0/decom_glows.py b/imap_processing/glows/l0/decom_glows.py index 42cd96e1f..2e86f90fa 100644 --- a/imap_processing/glows/l0/decom_glows.py +++ b/imap_processing/glows/l0/decom_glows.py @@ -58,10 +58,7 @@ def decom_packets( with open(packet_file_path, "rb") as binary_data: try: - glows_packets = glows_parser.generator( - binary_data, - buffer_read_size_bytes=5790778, - ) + glows_packets = glows_parser.generator(binary_data) for packet in glows_packets: apid = packet.header["PKT_APID"].derived_value diff --git a/imap_processing/mag/l0/decom_mag.py b/imap_processing/mag/l0/decom_mag.py index 8ea7001a1..586e3abd7 100644 --- a/imap_processing/mag/l0/decom_mag.py +++ b/imap_processing/mag/l0/decom_mag.py @@ -40,10 +40,7 @@ def decom_packets(packet_file_path: str) -> list[MagL0]: with open(packet_file_path, "rb") as binary_data: try: - mag_packets = mag_parser.generator( - binary_data, - buffer_read_size_bytes=5790778, # Todo: what size? - ) + mag_packets = mag_parser.generator(binary_data) for packet in mag_packets: apid = packet.header["PKT_APID"].derived_value