Skip to content

fixes - #1813

Merged
SFJohnson24 merged 3 commits into
mainfrom
fix
Jul 30, 2026
Merged

fixes#1813
SFJohnson24 merged 3 commits into
mainfrom
fix

Conversation

@SFJohnson24

@SFJohnson24 SFJohnson24 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

this PR fixes CORE-000757 expected not matching actual. DataFrame.iterrows() silently upcasts blank RELREC values (like an all-empty USUBJID column) from None to float NaN, and since filter_if_present treated NaN as a real filter to apply, the RELREC-to-CM merge in CORE-000757 wiped out the whole dataset

to test:
run CORE-000757 on this branch with test data--no longer gives skip; gives expected result from dataset
also fixes CORE-000744 negative 01-04

Comment thread CORE-Report-2026-07-28T14-00-32.csv Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSV files seems like debug artifacts. Could you please remove them or mention in a comment why they were made part of the PR?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are artifacts-- I added #1802 the csv in the gitignore but i also added it to this branch

relrec_row, left_dataset, datasets, dataset_preprocessor, wildcard
)
for _, relrec_row in relrec_for_domain.iterrows()
for relrec_row in relrec_for_domain.to_dict("records")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The merge on relrec record function still has
def merge_on_relrec_record( relrec_row: pd.Series, ...

the type hint is outdated as it is changed to type dict here now.

@RamilCDISC RamilCDISC left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR fixes .itterrows() bug identifies and explained in the PR description. The updated code was validated by:

  1. Ensuring the PR is in accordance with AC.
  2. Ensuring the PR doe snot have any unwanted code or comments.
  3. Ensuring the PR updated code integrates with existing flow.
  4. Ensuring the type hints and function calls chain to be maintained.
  5. Ensuring all unit and regression tests pass.
  6. Running manual validation on the tests data, using positive and negative datasets.
  7. Ensuring the outputs of the rule execution are valid.

@SFJohnson24
SFJohnson24 merged commit 167fa4e into main Jul 30, 2026
13 checks passed
@SFJohnson24
SFJohnson24 deleted the fix branch July 30, 2026 14:04
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.

2 participants