Skip to content

fix: improve data handling in initializers and transferer, streamline constructor in radionuclides#480

Merged
jirhiker merged 12 commits intostagingfrom
transfer-fix
Feb 12, 2026
Merged

fix: improve data handling in initializers and transferer, streamline constructor in radionuclides#480
jirhiker merged 12 commits intostagingfrom
transfer-fix

Conversation

@jirhiker
Copy link
Copy Markdown
Member

Why

This PR addresses the following problem / context:

  • Use bullet points here

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

Copilot AI review requested due to automatic review settings February 10, 2026 09:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves transfer/import robustness by centralizing CSV reading, tightening sample-info filtering, and extending minor-trace chemistry lineage with additional legacy sample point identifiers.

Changes:

  • Normalize CSV ingestion and filtering behavior across transferers (including cleanup in radionuclides).
  • Add SamplePtID / SamplePointID lineage fields to MinorTraceChemistry (model, transfer logic, tests, and migration).
  • Prevent duplicate term-category associations during lexicon initialization.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
transfers/transferer.py Switches to internal CSV reader and improves orphan-record logging/details.
transfers/radionuclides.py Removes custom dataframe-loading path and streamlines constructor.
transfers/minor_trace_chemistry_transfer.py Persists additional sample-point lineage fields and upserts them.
db/nma_legacy.py Adds new mapped columns for sample-point lineage on NMA_MinorTraceChemistry.
alembic/versions/e71807682f57_add_sample_point_fields_to_minor_trace.py Introduces schema changes to store new lineage fields.
core/initializers.py Avoids inserting duplicate lexicon links within a single init run.
tests/test_nma_chemistry_lineage.py Adjusts expectations and persistence tests for new columns.
tests/test_minor_trace_chemistry_transfer.py Ensures transfer dict includes new lineage keys.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bab253f4f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings February 10, 2026 10:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

jirhiker and others added 2 commits February 10, 2026 21:09
…ters_transfer and minor_trace_chemistry_transfer
…_trace.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 12, 2026 18:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 12, 2026 18:25
jirhiker and others added 2 commits February 12, 2026 11:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

…_trace.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 12, 2026 18:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

@jirhiker jirhiker merged commit b807b1d into staging Feb 12, 2026
6 checks passed
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