Skip to content

Commit

Permalink
Merge pull request #310 from greglucas/generator-buffer
Browse files Browse the repository at this point in the history
PERF: Remove buffer size limitation
  • Loading branch information
greglucas authored Jan 9, 2024
2 parents f2560cf + ed75c25 commit 8586da0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions imap_processing/glows/l0/decom_glows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions imap_processing/mag/l0/decom_mag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8586da0

Please sign in to comment.