Skip to content

error handling and removed if conditional#1670

Open
SFJohnson24 wants to merge 2 commits intomainfrom
supp
Open

error handling and removed if conditional#1670
SFJohnson24 wants to merge 2 commits intomainfrom
supp

Conversation

@SFJohnson24
Copy link
Collaborator

@SFJohnson24 SFJohnson24 commented Mar 16, 2026

This PR removes the If conditional for the pivot logic that is needed for other supp domains to collapse, previously limited to SUPPDM only. After pivoting QNAM values into columns, process_supp produces one sparse row per original QNAM record. The groupby/agg collapse is required for all SUPP domains to produce a single wide row per unique key.

I tested this on cg0371, fb0101, FB5801, and CG0531 for their various supp conditions.

I also added logic for when common keys (contained in both parent and supp) have 0 alignment--a preprocessingerror is thrown to prevent silent failing, and raise the issue in the report.

@SFJohnson24 SFJohnson24 linked an issue Mar 16, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incomplete pivot for SUPP merge

1 participant