There was an error while loading. Please reload this page.
1 parent 70a573f commit 067832bCopy full SHA for 067832b
1 file changed
imap_processing/codice/codice_l1a_de.py
@@ -415,7 +415,13 @@ def process_de_data(
415
# Sort by priority
416
sort_idx = np.argsort(group["priority"].values)
417
group = group.isel(epoch=sort_idx)
418
-
+ elif counts > num_priorities:
419
+ # TODO is this possible?
420
+ # Sort by priority
421
+ sort_idx = np.argsort(group["priority"].values)
422
+ group = group.isel(epoch=sort_idx)
423
+ # Keep only the first num_priorities packets
424
+ group = group.isel(epoch=slice(0, num_priorities))
425
padded_groups.append(group)
426
427
# Concatenate all groups
0 commit comments