Skip to content

GLOWS - fix duplication issue#3175

Open
laspsandoval wants to merge 1 commit into
IMAP-Science-Operations-Center:devfrom
laspsandoval:glows_histogram_duplicates
Open

GLOWS - fix duplication issue#3175
laspsandoval wants to merge 1 commit into
IMAP-Science-Operations-Center:devfrom
laspsandoval:glows_histogram_duplicates

Conversation

@laspsandoval
Copy link
Copy Markdown
Contributor

This pull request adds logic to deduplicate histogram entries in the generate_histogram_dataset function, ensuring that only the first occurrence of each unique (imap_start_time, imap_time_offset) pair is kept. Additionally, a new test verifies that the deduplication works as intended.

Deduplication logic:

  • Added a deduplication step in generate_histogram_dataset (in glows_l1a.py) that filters out duplicate histogram entries based on imap_start_time and imap_time_offset, logging a warning if any duplicates are found.

Testing:

  • Added a new test test_generate_histogram_dataset_deduplicates (in test_glows_l1a_cdf.py) to ensure the deduplication logic works correctly by asserting that all epochs in the resulting dataset are unique.

@laspsandoval laspsandoval added this to the May 2026 milestone May 11, 2026
@laspsandoval laspsandoval self-assigned this May 11, 2026
@laspsandoval laspsandoval added the Ins: GLOWS Related to the GLOWS instrument label May 11, 2026
@laspsandoval laspsandoval linked an issue May 11, 2026 that may be closed by this pull request
@laspsandoval laspsandoval requested a review from maxinelasp May 11, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ins: GLOWS Related to the GLOWS instrument

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

BUG - GLOWS L1a: histogram duplicates for some CDFs

1 participant